
SpectralLED® RS-7 USER MANUAL
Page 46
2.
followed by a comma
3.
followed by unsigned 16-bit integers as binary byte pairs, big-endian (most significant byte first), the
number of byte pairs determined by the current
WLR
i.e number of byte pairs = [endWL] – [startWL] + 1
4.
if the data is being transferred
to
the RS-7, the RS-7 will respond with “Ok”<CR><LF> after the final data
byte has been received.
In order to pack the spectral data into 16-bit integers, the data are first normalized such that the peak value is
set to maximum (0xFFFF), thus one is required to multiply each integer by the scale factor once the transfer is
complete in order to re-establish the proper absolute magnitude of the data.
Example of spectral transfer mode 0:
stm0
set
STM
mode 0 (not required if mode has been previously been set to 0)
Ok
osp
request current output spectrum
5.939613,4.743708,7.146379,35.52672,28.65044,39.23233,2440.087,519.4869,712.7541,2044.095,281.0387,20
2.69,4.539907,6.31384,46.78853,…,23.9096,32.474,1409.227,738.4146,1017.761,2020,391.4333,280.5293<CR>
<LF>
Example of spectral transfer mode 1:
stm1
set
STM
mode 1 (not required if mode has been previously been set to 1)
Ok
osp
request current output spectrum
0.220141008
data for [startWL] (see
WLR
)
0.221931979
0.216851279
0.219466045
0.217012778
0.215644792
0.217881665
0.216041222
0.216353044
0.215767771
…
0.011663915
0.006427045
0.010699615
0.008136001
0.010370667
data for [endWL] (see
WLR
)
final extra <CR><LF> terminates list (although list length is known via
WLR)
Example of spectral transfer mode 2:
stm2
set
STM
mode 2 (not required if mode has been previously been set to 2)
Ok
osp
request current output spectrum