GxCntSetAcquisitionMode
Purpose
Sets the board Acquisition mode.
Syntax
GxCntSetAcquisitionMode (nHandle, , nMode, pnStatus)
Parameters
Name
|
Type
|
Description
|
nHandle
|
SHORT
|
Handle to a counter board.
|
nMode
|
SHORT
|
Acquisition mode:
-
0 = GXCNT_ACQUISITION_CONTINUOUSLY: 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_PACE: The Pace mode ensures acquisition of data at accurately spaced time intervals. In Paced operation, the user specifies the time which should elapse BETWEEN 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 sets Acquisition to single mode:
SHORT nHandle, nStatus;
GxCntSetAcquisitionMode (nHandle, GXCNT_ACQUISITION_SINGLE, &nStatus)
See Also
GxCntGetAcquisitionMode, GxCntGetErrorString