GBS Elektronik MCA166-USB User Manual
Page 56
MCA166-USB
Name
MMCA_QUERY_SPECTRA
Description
The command read the MMCA spectrum data.
1. Parameter
No. of 1. Channel and read out
control
integer value
2. Parameter
Compress factor (1 ... 32)
long value
Result array
Channel contents N
long value
Byte Offset 4
Channel contents N+1
long value
...
Byte Offset 124
Channel contents N+31
long value
Byte Offset 128
Buffer state
integer value
Return Code
see MMCA_RESET command
Name
MMCA_QUERY_ENRICHMENT
Description
The command reads the begin and end of the 2 ROIs
1. Parameter
Peak begin
integer value
LLD<= begin < end
2. Parameter
Peak end
integer value
begin < end <= ULD, (end-begin) < 250
3. Parameter
Background begin
integer value
LLD<= begin < end
4. Parameter
Background end
integer value
begin < end <= ULD, (end-begin) < 250
Result array
Begin peak ROI
long value
Byte Offset 4
End peak ROI
long value
Byte Offset 8
Begin background
ROI
long value
Byte Offset 12
End background
ROI
long value
Return Code
see MMCA_RESET command
37 Read out control Bit[15:12], Channel number: Bit[11:0]
Bit[15:12] = 0x00 Read spectrum
Bit[15:12] = 0x01 Read MCS amplitude spectrum
Bit[15:12] = 0x02 Read spectrum buffer and unlock buffer
Bit[15:12] = 0x03 Read spectrum buffer and lock buffer
Bit[15:12] = 0x07 Read MCS amplitude spectrum buffer and lock buffer
38 Read out buffer state
Bit[15] = 1
Buffer filled
Bit[14] = 1
Buffer overrun
56