GxCntSetFunctionTimeIntervalDelay

Purpose

Sets the function mode to Time Interval with Delay

Syntax

GxCntSetFunctionTimeIntervalDelay  (nHandle, nMode, 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 an 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). A time interval with delay measurement begins like a standard measurement except that the stop event is disabled. As soon as the start event is recognized, the programmed delay begins. When the delay interval elapses, completion is enabled and the next stop event terminates the measurement. The delay interval can be specified using GxCntSetTimeIntervalDelay function.

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

Note: Using the Time Interval with Delay the stop arm event is not available.

Example

The following example sets the function mode to time interval with delay measure channel A to channel B:

 

SHORT nHandle, nStatus;

GxCntSetFunctionTimeIntervalDelay (nHandle, GXCNT_MEASURE_A_TO_B, &nStatus);

 

See Also

GxCntSetTimeIntervalDelay, GxCntSetFunctionTimeInterval, GxCntSetArmSource, GxCntSetArmSlope, GxCntGetErrorString