Mca166-usb – GBS Elektronik MCA166-USB User Manual
Page 60
MCA166-USB
MCA Measurement Setup Commands:
Command name
CMD_SET_ADC_RES_DISCR
Description
The command set the ADC resolution(res: 128, 256 … 4096), the LLD(Low level discriminator) and
the ULD(Upper level discriminator) to the values of its three parameter.
The command will be ignored and responded with a error messages, if one ore more parameter are
invalid or a measurement is still running.
Command syntax
Format
integer
integer
integer
long
integer
Parameter
preamble
command
res
LLD, ULD
end flag
Byte String (HEX)
A5
5A
46
00
res
l
res
h
LLD
l
LLD
h
ULD
l
ULD
h
B9
9B
Used setup value
None
Affected setup value
channels, lld, uld, stab_state
MCA state
STATE_READY
Command name
CMD_SET_PRESETS
Description
The command sets the choice(pre)
PRESET_NONE = 0
PRESET_REAL
= 1
PRESET_LIVE
= 2
PRESET_INT
= 3
PRESET_AREA
= 4
and value(val) of the preset. The parameter val must be lower then 65536 for PRESET_REAL and
PRESET_LIVE! If a measurement is running, only val can be changed.
Command syntax
Format
integer
integer
integer
long
integer
Parameter
preamble
command
pre
val
end flag
Byte String (HEX)
A5
5A
48
00
pre
l
pre
h
val
l
...
...
val
h
B9
9B
Used setup value
None
Affected setup value
presets, preset_value
MCA state
STATE_READY
Command name
CMD_SET_ROI
Description
The command sets the begin and end of the ROI for the preset integral and area.(LLD <= begin <
end and LLD < end <= ULD)
Command syntax
Format
integer
integer
integer
long
integer
Parameter
preamble
command
beg
end
end flag
Byte String (HEX)
A5
5A
49
00
beg
l
beg
h
end
l
end
h
00
00
B9
9B
Used setup value
LLD, ULD
Affected setup value
roi_begin, roi_end
MCA state
STATE_READY
60