Navigation: Scripting Reference Manual > Functions & Subroutines > GetDiffractHOE

 

GetDiffractHOE

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the HOE diffraction grating from a specified surface.

 

Syntax

GetDiffractHOE( n, tGrating , phaseType, coeffs )

 

Parameters

n As Long

Node number of the grating surface being queried

 

tGrating As T_HOE

After the subroutine executes, this variable will be populated with the construction data of the grating.

 

phaseType As String

Returns the type of aspheric phase deformation from the grating.  Can be "None", "Radial polynomial", or "XY polynomial".

 

coeffs() As Double

Array containing the coefficients of the phase deformation polynomial.

 

For the x,y polynomial phase departure type:

The index of coefficient Aij in the array is j + (i*(i+1))/2

There are i+1 terms of degree i

There are (n+1)(n+2)/2 terms up to and including degree n

 

See Also

T_HOE

Diffraction Grating Script Commands

Grating Types

 

 

 

 

 

Copyright © Photon Engineering, LLC