931044C / 1014
4. FIRMWARE COMMANDS AND RESPONSES
31
SHOW_ACTIVE
Returns a 1 if the EASY-MCA is active (i.e., acquiring spectral data) or 0 if it is not active.
Responses:
$C00000087<CR>
Not active.
$C00001088<CR>
Active.
SHOW_CONFIGURATION
Returns a record that indicates the hardware configuration of the MCB. The record contains
information about the number of segments in an MCB (always 1 for the EASY-MCA), and
the current conversion gain for each segment. The record is organized as follows:
$J0819200001aaaaa00000[65 zeros here for total of 75 zeros]00000ccc
where aaaaa represents the conversion gain for the one and only segment in the currently
selected device, and ccc represents the record checksum. See the section on response
records in this chapter for more information about response records and checksums.
SHOW_CONFIGURATION_MASK
Returns two masks, the first of which can be “anded” with data from the MCB to clear the
ROI bit from the data. When the second mask value is “anded” with data from the MCB, the
data bits are removed and only the ROI bit remains.
Response:
CONF_MASK 02147483647 02147483648
SHOW_CONFIGURATION_UART
Reports the baud rate, parity option, number of data bits, and number of stop bits for the
serial interface.
Responses:
$F09600N81
9600 baud, no parity, 8 data bits, 1 stop bit.
$F19200E82
19200 baud, even parity, 8 data bits, 2 stop bits.
$F02400O71
2400 baud, odd parity, 7 data bits, 1 stop bits.
SHOW_DATA_APPLICATION “string”
If string matches “string1" in a previous SET_DATA_APPLICATION command, then
string2 from that command is returned. The response is a $F record.
SHOW_DEVICE
Reports which inputs are acquiring data. The 16-bit answer is transmitted as a $C response
record, which represents a binary mask of bits each representing one of the two inputs. A 1
bit in the mask indicates that the corresponding segment is counting.