GtDio6xStepDelete

Applies To

GX5296, GX5961, GX5964, File

Purpose

Deletes the specified step number.

Syntax

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

lStep
LONG
Step Number to access 0-4095.
lNumOfSteps
LONG
Number of steps to delete.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

This function deletes the specified step number form the sequencer’s valid steps list using the GtDio6xStepGetDefinedSteps API.

Example

The following example inserts 10 steps and then delete 3 steps starting at step 7:

 

SHORT nStatus;

GtDio6xStepInsert(nHandle, GTDIO6X_INSERT_STEP_AT, 1, 10,  &nStatus);

GtDio6xStepDelete (nHandle, 7, 3, FALSE, &nStatus);

 

See Also

GtDio6xStepInsert, GtDio6xStepRemap, GtDio6xStepGetDefinedSteps, GtDio6xGetErrorString