SpectralRange

Declaration: TSpdcSet.SpectralRange (idx: integer; var RangeLow, RangeHigh: double): integer;
The function SpectralRange determines the wavelength range which is required for a correct functioning of the spectral descriptor specified by the parameter idx. The variable parameters RangeLow and RangeHigh return the lower and upper limits.

The function returns the following error codes:

 0 ... everything is OK
-1 ... idx is out of range (valid range: 1..NumSpdcs)
-2 ... range cannot be detected (virtual descriptor addresses undefined descriptors)

Hint: In order to directly access the currently loaded spectral descriptors (those which are displayed in the Spectral Descriptor Editor) you can use the pre-declared global variable SPDCData.