GtDio6xStepGetOutputFlag

Applies To

GX5296, GX5961, GX5964, File

Purpose

Returns the sequence specified flag levels of a specified Step.

Syntax

GtDio6xStepGetOutputFlag (nHandle, lStep, nFlag, pbOutputFlag, 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.
nFlag
SHORT
Output Flag number:

0.    GTDIO6X_STEP_OUTPUT_FLAG_0: Output Flag 0.

1.    GTDIO6X_STEP_OUTPUT_FLAG_1: Output Flag 1.

pbOutputFlag
PBOOL
Returns the state of sequence flag:

0.    GTDIO6X_STEP_OUTPUT_FLAG_LOW: Output flag low.

1.    GTDIO6X_STEP_OUTPUT_FLAG_HIGH: Output flag high.

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

Comments

This control allows the user to specify the level of Sequence Flag 1 and Sequence Flag 2 during the currently selected step.  These general-purpose outputs can be routed any of the AUX outputs as well as the PXI Triggers and PXI Local Bus outputs.

Example

The following example sets the sequence output flag 0 level to high for sequence step 5, and return the settings:

 

SHORT nStatus;

BOOL bOutputFlag;

 

GtDio6xStepSetOutputFlag(nHandle, 5, GTDIO6X_STEP_OUTPUT_FLAG_0, GTDIO6X_STEP_OUTPUT_FLAG_HIGH, &nStatus);

GtDio6xStepGetOutputFlag(nHandle, 5, GTDIO6X_STEP_OUTPUT_FLAG_0, &bOutputFlag, &nStatus);

 

See Also

GtDio6xStepSetOutputFlag, GtDio6xGetErrorString