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

Description of the MCA Communication DLL
Name
MMCA_SET_PZC_MANUAL
Description
The function sets the PZC value and returns the PZC offset.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_PZC_MANUAL(unsigned short unPZC,LPSTR rec_data);
unPZC
PZC value:
0 ... 2499
rec_data
Pointer to a SET_MEASURE_PZC structure.
See CMD_SET_MEASURE_PZC, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
MCA166: Please note that this function may cause a firmware hang up if the following requirements
are not meets:
- statistical distributed input pulses with a count rate between 500 and 30000 Cps
- the significant peak is located above the first quarter of the spectrum
Name
MMCA_SET_PZC_VALUE
Description
The function sets the PZC value.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_PZC_VALUE(unsigned short unPZC,LPSTR rec_data);
unPZC
PZC value:
0 ... 2499
rec_data
Pointer to a SET_MEASURE_PZC structure. However, the function has no effect on this structure.
See CMD_SET_MEASURE_PZC, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
See remarks for MMCA_SET_PZC_MANUAL function.
Name
MMCA_SET_PZC_TIME_OFFSET
Description
The function sets the time offset for the PZC measurement.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_PZC_TIME_OFFSET(unsigned short unOffset1,
unsigned short unOffset3)
unOffset1
Offset for low DTC:
0 ... 31, default 15
unOffset3
Offset for high DTC:
0 ... 31, default 15
Return value
See MCA_COMM function
Name
MMCA_SET_GATING
Description
The function sets the gating.
Declaration
ERROR_FLAG CALLBACK MMCA_SET_GATING(unsigned char uchMode,
unsigned char uchSignal,
unsigned char uchShift);
uchMode
Mode:
0 = none, 1 = discard, 2 = sort
uchSignal
Signal:
0 = low, 1 = high
uchShift
Time shift:
0 … 255 * 100 nsec
Return value
See MCA_COMM function
Remarks
This function is only usable for MCA527.
17