set_spectrum_simulation_range(n : integer; min, mix : real number; no_points : integer; spectral_unit : string)

Navigation:  User guide > OLE automation > Methods >

set_spectrum_simulation_range(n : integer; min, mix : real number; no_points : integer; spectral_unit : string)

Previous pageReturn to chapter overviewNext page

Use this command to change the range of one of the simulated spectra. CODE reacts as if you had executed the Range command in the window of the n-th spectrum. Spectra are counted starting with 1, i.e. 1, 2, 3 , ...

The new spectral range is defined by the mininum value min, the maximum value max, the number of data points no_points and the spectral unit. The spectral unit must be specified as one of the following strings:

 

 String transmitted                Spectral unit used by CODE

 

 'cm^-1^' or '1/cm'        >        wavenumbers

 'nm'                        >        nanometers

 '|m|m' or 'micron'                >        microns

 'eV'                        >        electron volts

 'THz'                        >        THz