Cmd_query_spectra_ex – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 43

Description of the MCA527 Firmware Commands
Command name
CMD_QUERY_SPECTRA_EX
Compatibility
New MCA527 command.
Execution right
Conditionally necessary (see buffer control and remarks)
Description
The command reads the spectrum data.
n:
Number of first channel
c:
Compress factor (1 ... 128)
b:
Buffer control: item [bit 4…0], index [bit 7…5], reserved [bit 13…8], flags [bit 15…14]
Format
integer
integer
integer
integer
integer
integer
Parameter
preamble
command
n
c
b
end flag
Byte string (HEX)
A5
5A
02
01
n
l
n
h
c
l
c
h
b
l
b
h
B9
9B
Buffer control (item)
The buffer control applies to CMD_QUERY_SPECTRA and CMD_QUERY_SPECTRA_EX, but items
higher than 15 are only usable with CMD_QUERY_SPECTRA_EX.
Item Meaning
MCA mode
MCS mode
Execution right
0 Read spectrum
available
available
not necessary
1 Read MCS amplitude spectrum
not available
available
not necessary
2 Read spectrum buffer and unlock buffer
available
available
necessary
3 Read spectrum buffer and lock buffer
available
available
necessary
6 Read MCS amplitude spectrum buffer
and unlock buffer
not available
available
necessary
7 Read MCS amplitude spectrum buffer
and lock buffer
not available
available
necessary
8 Read rejected spectrum
available
available
not necessary
9 Read rejected MCS amplitude spectrum not available
available
not necessary
10 Read rejected spectrum buffer and
unlock buffer
available
available
necessary
11 Read rejected spectrum buffer and lock
buffer
available
available
necessary
14 Read rejected MCS amplitude spectrum
buffer and unlock buffer
not available
available
necessary
15 Read rejected MCS amplitude spectrum
buffer and lock buffer
not available
available
necessary
17 Read MCS counter1 spectrum
not available
available
not necessary
18 Read MCS counter1 spectrum buffer
and unlock buffer
not available
available
necessary
19 Read MCS counter1 spectrum buffer
and lock buffer
not available
available
necessary
21 Read MCS counter2 spectrum
not available
available
not necessary
22 Read MCS counter2 spectrum buffer
and unlock buffer
not available
available
necessary
23 Read MCS counter2 spectrum buffer
and lock buffer
not available
available
necessary
43