Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceSpectrum

 

SetSourceSpectrum

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the spectrum being used by the source.  Equivalent to selecting a spectrum from the Spectrum list on the Wavelengths tab of a source dialog.  If the source node or the spectrum node is invalid, an error is set and the operation is halted.

 

 

Syntax

SetSourceSpectrum srcNode, spectNode

 

 

Parameters

srcNode As Long

Node number of the source being modified.

 

spectNode As Long

Node number of the spectrum to be applied.

 

 

Remarks

The following example  finds the nodes for a source and a spectrum, then applies the spectrum to the source.

 

Dim srcNode As Long

Dim spectNode As Long

 

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

spectNode = SpectrumFindName( "Spectrum 1" )

 

SetSourceSpectrum srcNode, spectNode

 

 

See Also

GetSourceSpectrum

SetSourcePowerUnits

GetSourcePowerUnits

SetSourceRayWavelengthMethod

GetSourceRayWavelengthMethod

SetSourceRayWavelengthRange

GetSourceRayWavelengthRange

 

 

 

 

 

Copyright © Photon Engineering, LLC