GtDio6xStepRemap

Applies To

GX5296, GX5961, GX5964, File

Purpose

Remaps predefined steps.

Syntax

GtDio6xStepRemap (nHandle, lFirstStep, lSecondStep, nMode, dwOptions, 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.

     File handle is used when communicating with a file. The File handle session identifier is  returned by calling GtDio6xFileOpen.

lnFirstStep
LONG
First step to remap.
lSecondStep
LONG
Second step to remap.
nMode
SHORT
Remap modes are as follows

0.    GTDIO6X_SWAP_STEPS: Swap the specified steps.

1.    GTDIO6X_MOVE_STEPS: move the specified steps.

2.    GTDIO6X_COPY_STEPS copy the specified steps.

dwOptions
DWORD
Not used, pass a zero
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

This function initializes the Steps as follows:

Example

The following example initializes the first step:

 

SHORT nStatus;

 

GtDio6xStepReset(nHandle, 0, 1, &nStatus);

See Also

GtDio6xGetErrorString