GxCntSetFunctionFastFrequency

Purpose

Sets the function mode to Fast Frequency.

Syntax

GxCntSetFunctionFastFrequency (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nChannel
SHORT
Specified Channel number:
  • 0 = GXCNT_MEASURE_CHANNEL_A: measure channel A.
  • 1 = GXCNT_MEASURE_CHANNEL_B: measure channel B.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Sets the mode to measure FastFrequency on the specified channel. This mode allows frequency measurement using short measurement interval enabling fast data acquisition. Since measurement resolution is proportional to the gate time low frequency signals are best suitable for this mode.

Note: Start arming can be used with FastFrequency, although Stop arming is not available.

Example

The following example sets the function to Fast Frequency measuring channel B:

 

SHORT nHandle, nStatus;

GxCntSetFunctionFastFrequency (nHandle, GXCNT_MEASURE_CHANNEL_B, &nStatus);

 

See Also

GxCntSetFunctionFrequency, GxCntSetArmSource, GxCntSetArmSlope, GxCntGetErrorString