Sets the function mode to Frequency.
GxCntSetFunctionFrequency (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 measure Frequency on the specified channel. In this mode the measurement resolution in this mode is superior to that in GxCntSetFunctionFastFrequency. Signal frequencies can range from near DC to 100 MHz (see Specifications).
The user must specify the gate time (GxCntSetGateTime) over which the signal frequency is to be measured (long measurement times increase the number of significant digits).
The following example sets the gate time to 1mS:
SHORT nHandle, nStatus;
GxCntSetFunctionFrequency (nHandle, 0.001, &nStatus)
GxCntSetFunctionFastFrequency, GxCntSetGateTime, GxCntSetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetErrorString