GtDio6xStepGetLast

Applies To

GX5296, GX5961, GX5964, File

Purpose

Returns the specified step last sequence step flag.

Syntax

GtDio6xStepGetLast (nHandle, lStep, pbLastStep, 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.
pbLastStep
PBOOL
Returns the last step flag for this sequence step:
0.      FALSE: Disable the specified step as the last sequence step.
1.      TRUE: Sets the specified step as the last sequence step.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

The Last Step flag indicates whether the currently selected step is the last step of the sequence burst (TRUE) or a sub-step of a multi step burst (FALSE).

Example

The following example sets the last step flag for sequence step 5, and returns the settings:

 

BOOL bLastStep;

SHORT nStatus;

 

GtDio6xStepSetLast(nHandle, 5, GTDIO6X_ENABLED, &nStatus);

 

GtDio6xStepGetLast(nHandle, 5, &bLastStep, &nStatus);

 

See Also

GtDio6xStepSetLast, GtDio6xGetErrorString