GtDio6xSequencerRun

Applies To

GX5296, GX5961, GX5964

Purpose

Runs the sequencer starting at the specified Step.

Syntax

GtDio6xSequencerRun (nHandle, lStep, 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.

lStep
LONG
Specify the Step number to start execute form, 0-4095
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

The first time calling this function the function primes the sequencer and all of its components and issues a software trigger. If calling this function multiple times and no changes were made to any of the following:

     Timing sets values.

     Vector contents.

     Steps vector count and offsets.

Then execution time will be faster.

Use GtDio6xSequencerArm API in case of using external trigger.

Example

The following example runs Step 0:

 

SHORT nStatus;

 

GtDio6xSequencerRun(nHandle, 0, &nStatus);

 

See Also

GtDio6xSequencerArm, GtDio6xSequencerArmIdleStep, GtDio6xSequencerHalt, GtDio6xSequencerReset, GtDio6xSequencerResume, GtDio6xSequencerRunEx, GtDio6xSequencerRunIdleStep, GtDio6xSequencerSetBurstCount, GtDio6xSequencerSetChannelsCompareTrigger, GtDio6xSequencerSetRunCompletionMode, GtDio6xSequencerSetFreqSynth, GtDio6xSequencerSetHaltMode, GtDio6xSequencerSetIdleStep, GtDio6xSequencerSetLoopCounterMode, GtDio6xSequencerSetMasterClockSource, GtDio6xSequencerSetRecordOffset, GtDio6xSequencerSetRecordParameters, GtDio6xSequencerSetStopMode, GtDio6xSequencerSetSyncPulseSource, GtDio6xSequencerSetSyncPulseParameters, GtDio6xSequencerSetSystemClockExternal, GtDio6xSequencerSetSystemClockSource, GtDio6xSequencerStop, GtDio6xGetErrorString