Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceRayWavelengthMethod

 

SetSourceRayWavelengthMethod

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the source ray wavelength generation method.  The method is indicated by a Long, where 0 = "As specified by list" and 1 = "Randomly according to spectrum".

 

 

Syntax

SetSourceRayWavelengthMethod srcNode, method

 

 

Parameters

srcNode As Long

Node number of the source being modified.

 

method As Long

Value indicating the method to be used in generating ray wavelengths for the source.  Valid options are:

0: "As specified by list"

1: "Randomly according to spectrum"

 

 

Remarks

The following example finds a source node and spectrum, assigns the spectrum to be used and then sets the wavelength generation method to be "Randomly according to spectrum"

 

Dim srcNode As Long

Dim spectNode As Long

 

srcNode = FindFullName( "Optical Sources.Source 1" )

spectNode = SpectrumFindName( "Spectrum 1" )

 

SetSourceSpectrum srcNode, spectNode

SetSourceRayWavelengthMethod srcNode, 1

 

 

See Also

SetSourceSpectrum

GetSourceSpectrum

SetSourcePowerUnits

GetSourcePowerUnits

GetSourceRayWavelengthMethod

SetSourceRayWavelengthRange

GetSourceRayWavelengthRange

 

 

 

 

 

Copyright © Photon Engineering, LLC