GxCntGetAcquisitionMode
Purpose
Returns the board Acquisition mode.
Syntax
GxCntGetAcquisitionMode (nHandle, pnMode, pnStatus)
Parameters
Name
|
Type
|
Description
|
nHandle
|
SHORT
|
Handle to a counter board.
|
pnMode
|
PSHORT
|
Returned Acquisition mode:
-
0 = GXCNT_ACQUISITION_CONTINUOUS: The counter continuously makes measurements.
-
1 = GXCNT_ACQUISITION_SINGLE: Instrument makes a single measurement. Each Call to GxCntTrig initiates a new measurement.
-
2 = GXCNT_ACQUISITION_PACED: The Pace mode ensures acquisition of data at accurately spaced time intervals. In Paced operation, the user specifies the time which should elapse BETWEEN the initiations of measurements. See GxCntSetAcquisitionTimeInterval function for more details on the timing settings.
|
pnStatus
|
PSHORT
|
Returned status: 0 on success, negative number on failure.
|
Example
The following example returns the Acquisition mode:
SHORT nHandle, nMode, nStatus;
GxCntGetAcquisitionMode (nHandle, &nMode, &nStatus)
See Also
GxCntSetAcquisitionMode, GxCntGetErrorString