GtDio6xSequencerGetRunElapsedTime

Applies To

GX5296, GX5961, GX5964

Purpose

Returns the execution time of the latest sequence run.

Syntax

GtDio6xSequencerGetRunElapsedTime (nHandle, pdElapsedTime, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

pdElapsedTime
PDOUBLE
Used to return the execution time of the latest sequencer run.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

The sequence active time has a 25ns resolution +/- 25ns.

Example

The following example gets the sequence active time:

 

DOUBLE dTime;

SHORT nStatus;

 

GtDio6xSequencerGetRunElapsedTime(nHandle, &dElapsedTime, &nStatus);

 

See Also

GtDio6xSequencerRun, GtDio6xSequencerRunEx, GtDio6xSequencerGetStatus, GtDio6xGetErrorString