Sets the function mode to Single Period.
GxCntSetFunctionSinglePeriod (nHandle, nChannel, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Sets the mode to Single Period, in this mode a signal period can be measured over exactly one Acquisition by performing a time interval. Single period measurements may produce results that are less accurate than the conventional period mode.
The following example function mode to Single Period measure channel A:
SHORT nHandle, nStatus;
GxCntSetFunctionSinglePeriod (nHandle, GXCNT_MEASURE_CHANNEL_A, &nStatus);
GxCntSetFunctionFrequency, GxCntSetGateTime, GxCntSetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetErrorString