GxCntSetFunctionFrequency

Purpose

Sets the function mode to Frequency.

Syntax

GxCntSetFunctionFrequency (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 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).

Example

The following example sets the gate time to 1mS:

 

SHORT nHandle, nStatus;

GxCntSetFunctionFrequency (nHandle, 0.001, &nStatus)

 

See Also

GxCntSetFunctionFastFrequency, GxCntSetGateTime, GxCntSetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetErrorString