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

Page 25

Advertising
background image

Description of the MCA Communication DLL

Name

MMCA_QUERY_CENTROID

Description

The function reads peak centroid of the specified ROI

Declaration

ERROR_FLAG CALLBACK MMCA_QUERY_CENTROID(unsigned short unRoiBegin,
unsigned short unRoiEnd,

LPSTR rec_data)

unRoiBegin

Peak ROI begin:

LLD<= begin < end

unRoiEnd

Peak ROI end:

begin < end <= ULD, (end-begin) < 250

rec_data

Pointer to a QUERRY_CENTROID structure.
See CMD_QUERY_CENTROID, mca_comm.h or mca32com.bas.

Return value

See MCA_COMM function

Name

MMCA_QUERY_VOLTAGE_CURRENT

Description

The function reads the voltages and currents from the MCA.

Declaration

ERROR_FLAG CALLBACK MMCA_QUERY_VOLTAGE_CURRENT(LPSTR rec_data);

rec_data

Pointer to a QUERRY_VOLTAGE_CURRENT structure.
See CMD_QUERY_VOLTAGE_CURRENT, mca_comm.h or mca32com.bas.

Return value

See MCA_COMM function

Name

MMCA_QUERY_COMMON_MEMORY

Description

The function reads the common memory from the MCA527.

Declaration

ERROR_FLAG CALLBACK MMCA_QUERY_COMMON_MEMORY(unsigned long ulOffset,
unsigned short* lpunData);

ulOffset

Even-numbered offset to be read from.

lpunData

Pointer to an array of 720 unsigned short values.
See CMD_QUERY_COMMON_MEMORY, mca_comm.h or mca32com.bas.

Return value

See MCA_COMM function

Remarks

This function is only usable for MCA527.

Name

MMCA_QUERY_HISTOGRAM

Description

The function causes the MCA527 to acquire a histogram from 500.000 ADC samples (= 50 ms).

Declaration

ERROR_FLAG CALLBACK MMCA_QUERY_HISTOGRAM(unsigned short unOffset,
unsigned short unCompressFactor,

unsigned long* lpulData);

unOffset

Offset to be read from (0 ... 16384 – 256 * class interval width).

unCompressFactor

Class interval width ( 1, 2, 4 ... 64).

lpunData

Pointer to an array of 256 unsigned long values.

Return value

See MCA_COMM function

Remarks

This function is only usable for MCA527. See CMD_QUERY_HISTORY, mca_comm.h or
mca32com.bas.

25

Advertising
This manual is related to the following products: