GtDio6xSequencerReset

Applies To

GX5296, GX5961, GX5964

Purpose

Performs a sequence reset on the sequencer engine.

Syntax

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

pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

This command forces the sequencer logic to the reset state with the pin electronics setting unchanged.

The sequencer will reset to the RESET state (refer to the Sequencer State Machine diagram). The RESET state causes the sequencer to continuously loop on the first vector assigned to Step 0.

The following describe the reset state:

     Sequencer returns to standby state on sequence step 0.

     Clears pending starts and stops.

     Clears the Error Address Memory.

     Reset Watchdog and Vector Timeout timers.

     Active Timer Reset to 0 Seconds.

Example

The following example resets the sequence logic:

 

SHORT nStatus;

 

GtDio6xSequencerReset(nHandle, &nStatus);

 

See Also

GtDio6xReset, GtDio6xInitialize, GtDio6xGetErrorString