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

Description of the MCA Communication DLL
Name
MMCA_QUERY_STATE527_EX2
Description
The function reads the extended MCA527 state.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_STATE527_EX2(LPSTR rec_data);
rec_data
Pointer to a QUERRY_STATE527_EX2 structure.
See CMD_QUERY_STATE527_EX2, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
This function is only usable for MCA527.
Name
MMCA_QUERY_SYSTEM_DATA
Description
The function reads the MMCA system data.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_SYSTEM_DATA(LPSTR rec_data);
rec_data
Pointer to a QUERRY_SYSTEM_DATA structure.
See CMD_QUERY_SYSTEM_DATA, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Name
MMCA_QUERY_SPECTRA
Description
The function read the MMCA spectrum data.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_SPECTRA(unsigned short unFirstChannel,
unsigned long ulCompressFactor,
LPSTR rec_data)
unFirstChannel
Number of first channel (bit 11 … 0):
0 … channels count – 32 * compress factor – 1
and buffer control (bit 15 … 12):
0 … 15 (see CMD_QUERY_SPECTRA_EX).
ulCompressFactor
Compress factor
(MCA166: 1 ... 32, MCA527: 1 … 128)
rec_data
Pointer to a QUERRY_SPECTRA structure.
See CMD_QUERY_SPECTRA, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Name
MMCA_QUERY_SPECTRA_EX
Description
The function read the MMCA spectrum data.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_SPECTRA_EX(unsigned short unFirstChannel,
unsigned short unCompressFactor,
unsigned short unBufferControl,
LPSTR rec_data)
unFirstChannel
Number of first channel:
0 … channels count – 32 * compress factor - 1
unCompressFactor
Compress factor:
(MCA166: 1 ... 32, MCA527: 1 … 128)
unBufferControl
Buffer control (see CMD_QUERY_SPECTRA_EX).
rec_data
Pointer to a QUERRY_SPECTRA structure.
See CMD_QUERY_SPECTRA, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
This function can be used for both MCA166 and MCA527. The function decides based on the para-
meters which firmware command (CMD_QUERY_SPECTRA or CMD_QUERY_SPECTRA_EX) has to
be applied. The developer has to make sure that the parameters suit to the connected MCA type.
23