Description Creates a new Blackbody spectrum from a given temperature (K) and wavelength range. The default name of the spectrum can be changed by using the SpectrumSetName subroutine. Before the spectrum is added to the FRED document, an Update command must be issued in the script.
Syntax spectNode = SpectrumCreateBlackbody( temp, wlMin, wlMax )
Parameters spectNode (Long) Node number of the newly created spectrum.
temp As Double Temperature of the Blackbody source in Kelvin.
wlMin As Double Minimum wavelength for the spectrum in microns.
wlMax As Dobule Maximum wavelength for the spectrum in microns.
Example The following example adds a new Blackbody spectrum at 5900 K over the range 0.3 to 0.7 microns, sets the name of the newly added spectrum and then updates the FRED document.
Dim spectNode As Long
spectNode = SpectrumCreateBlackbody( 5900, 0.3, 0.7 ) SpectrumSetName spectNode, "My Spectrum" Update
See Also SpectrumCreatePredefinedSampled
|