Description of the mca communication dll – GBS Elektronik MCA-166 Communication DLL User Manual
Page 19

Description of the MCA Communication DLL
MCA Stabilization functions:
Name
MMCA_SET_STABILISATION
Description
The function sets the peak stabilization.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_STABILISATION(unsigned short unStateOrChannel,
unsigned short unROIBegin,
unsigned short unROIEnd);
unStateOrChannel
Stabilization flags (see CMD_SET_STABILISATION)
unROIBegin
Peak ROI begin:
LLD<= begin < end
unROIEnd
Peak ROI end:
begin < end <= ULD, (end-begin) < 250
Return value
See MCA_COMM function
Name
MMCA_SET_STAB_PARAM
Description
The function sets the peak stabilization parameters.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_STAB_PARAM(unsigned short unStabTime,
unsigned long ulStabArea);
unStabTime
Stabilization time: default 10 sec interval
ulStabArea
Stabilization area: default 25000
Return value
See MCA_COMM function
MCA Detector Power functions:
Name
MMCA_SET_PREAMPLIFIER_POWER
Description
The function sets the preamplifier power.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_PREAMPLIFIER_POWER(unsigned short unPreamplifierPower);
unPreamplifierPower
Preamplifier switches:
0x80
-24V
0x40
+24V
0x20
-12V
0x10
+12V
Return value
See MCA_COMM function
Name
MMCA_SET_HIGH_VOLTAGES
Description
The function sets the detector high voltage and controls the HV-inhibit-signal.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_HIGH_VOLTAGES(unsigned short unHighVoltage,
long lInhibit);
unHighVoltage
High voltage:
0 ... 3600 V
lInhibit
High voltage inhibit:
0 = Inhibit off
1 = ”Canberra HPGe mode”, HV shut down if inhibit input < 0.5V
2 = “DSG HPGe mode”,
HV shut down if inhibit input < 0.5V
-1 = ”Ortec HPGe mode”,
HV shut down if inhibit input ≥ 5V
Return value
See MCA_COMM function
2 The high voltages will ramp up or down by the MMCA.
3 Mode 1 and 2 are identical. The difference is made by reasons of legacy.
19