GxCntSetFunctionSinglePeriod

Purpose

Sets the function mode to Single Period.

Syntax

GxCntSetFunctionSinglePeriod (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 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.

Example

The following example function mode to Single Period measure channel A:

 

SHORT nHandle, nStatus;

GxCntSetFunctionSinglePeriod (nHandle, GXCNT_MEASURE_CHANNEL_A, &nStatus);

 

See Also

GxCntSetFunctionFrequency, GxCntSetGateTime, GxCntSetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetErrorString