Navigation: Scripting Reference Manual > Functions & Subroutines > SetDiffractLinear

 

SetDiffractLinear

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets a linear diffraction grating on a specific surface.

 

Syntax

SetDiffractLinear n, angle, freq

 

Parameters

n As Long

Node number of the diffraction grating surface.

 

angle As Double

Angle for the grating line orientation.

 

freq As Double

Frequency for the grating.  The units of frequency are inverse system units.

 

Remarks

This subroutine sets the diffraction grating for a specific surface to Linear.  If there is a problem, the subroutine sets an error and returns without modifying the surface.

 

See Also

Diffraction Grating Script Commands

Diffraction Gratings

 

 

 

 

 

Copyright © Photon Engineering, LLC