GxCntSetFunctionTimeInterval

Purpose

Sets the function mode to Time Interval.

Syntax

GxCntSet (nHandle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nMode
SHORT
Measurement Mode:
  • 0 = GXCNT_MEASURE_A_TO_B: measure time interval from channel A to Channel B.
  • 1 = GXCNT_MEASURE_B_TO_A: measure time interval from channel B to Channel A.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Time Interval is defined as the elapsed time between event on the start input channel and an event on the stop input channel. Event is defined either a positive or negative transition of the input signal (using GxCntSetChannelSlope).

The GC2200/GTX2200 allows Time Interval measurements to be both start armed and stop armed for maximum flexibility.

Example

The following example sets the function mode to Test Interval measure channel A to channel B:

 

SHORT nHandle, nStatus;

GxCntSetFunctionTimeInterval (nHandle, GXCNT_MEASURE_A_TO_B, &nStatus)

 

See Also

GxCntSetFunctionTimeIntervalDelay, GxCntSetArmSource, GxCntSetArmSlope, GxCntGetErrorString