Cmd_query_ahrc_histogram, Cmd_query_detector_info – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 53

Advertising
background image

Description of the MCA527 Firmware Commands

Name

CMD_QUERY_AHRC_HISTOGRAM

Compatibility

New MCA527 command (since firmware version 13.08).

Execution right

Necessary

Description

The command causes the MCA to acquire a histogram from the areas of all detected events within
an acquisition time of 0.8 seconds. The area is equivalent to the sum of the differences between the
ADC value and the baseline from the point where the signal curve exceeds the threshold to the point
where the signal curve falls below the threshold again.
c:

class interval width (1, 2, 4 ... 32768)

The command is ignored and responds with an error value if the general mode is unequal to “Time
stamp recorder (AHRC = analog high rate counting)” (= 5) or if a measurement is still running.

Format

integer

integer

integer

integer

integer

integer

Parameter

Preamble

command

c

0

0

end flag

Byte string (HEX)

A5

5A

2B

01

c

l

c

h

00

00

00

00

B9

9B

Result data array

Byte offset 0

Results

unsigned long [360]

Byte offset 1440

Command flag and parameters

8 bytes

Byte offset 1448

Checksum

unsigned short

Remarks

The histogram is used to determine the AHRC group width. Before calling this command, the
command CMD_SET_AHRC_PARAM may need to be called to set the AHRC threshold. The same
command is subsequently used to set the new AHRC group width

Name

CMD_QUERY_DETECTOR_INFO

Compatibility

New MCA527 command (since firmware version 14.03).

Execution right

Not necessary

Description

The command returns 1024 bytes of the detector information

.

Range: 0:

[0 … 1023]

1:

[1024 … 2047]

Format

integer

integer

integer

long

integer

Parameter

Preamble

command

range

0

end flag

Byte string (HEX)

A5

5A

33

01

range

l

range

h

00

00

00

00

B9

9B

Result data array

Byte offset 0

Data

1024 bytes

Byte offset 1024

Command flag and parameters

8 bytes

Byte offset 1032

Checksum

unsigned short

Remarks

There are detectors that supply detector information that are stored in an integrated EEPROM with a
maximum size of 2048 bytes. The structure of the detector information is described in an extra
document.
The flag FEATURES_DETECTOR_INFO_VALID of the parameter “MCA features” (byte offset 8)
returned by the command CMD_QUERY_STATE527 indicates if valid detector information are
available.

53

Advertising