GX5296, GX5961, GX5964, File
Sets the specified step as the last sequence step.
GtDio6xStepSetLast (nHandle, lStep, bLastStep, pnStatus)
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. |
bLastStep |
BOOL |
Used to specify 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. |
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).
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);