Mca527 – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 44
MCA527
Command name
CMD_QUERY_SPECTRA_EX (Continuation)
Buffer control (index
The index is only relevant for gating mode 'sort by time'. If the gating mode is not 'sort by time', the
index should be zero. See also command CMD_SET_GATING.
Buffer control (reserved
The reserved bits should by zero.
Buffer control (flags)
Bit 15:
0 = maximum of the compressed channels
1 = sum of the compressed channels
Bit 14:
0 = 32 channels [unsigned long]
1 = 64 channels [unsigned short]
Result data array
Byte offset 0
Channels counts
unsigned long [32]
or
unsigned short [64]
The data format is depending on
bit 14 of buffer control.
Byte offset 128
Read out buffer state
unsigned short OCCUPIED
= 0x2000
OVERRUN
= 0x4000
FILLED
= 0x8000
Byte offset 130
Checksum
unsigned short
Remarks
This command has been added because CMD_QUERY_SPECTRA does not support more than
4096 channels and its buffer control parameter is limited.
If the MCA527 measures in repeat mode, the execution right is necessary, no matter the value of
buffer control.
The capability to lock and unlock the buffer is relevant if the MCA527 measures in repeat mode. It is
also used with the command CMD_QUERY_EXTENSION_RS232_RX.
Locking the buffer makes sure that the buffer is not overwritten with the data of the next measuring
cycle before the buffer is not unlocked again.
If the MCA527 measures in a repeat mode which writes to the microSD memory card, the access to
the buffer is denied. In this case the buffer is exclusively controlled by the MCA527.
This remarks are also applicable for CMD_QUERY_SPECTRA.
51 Since firmware version 14.02
52 Since firmware version 12.03.
53 Since firmware version 12.04.
44