GtDio6xTrigConfigSetPxiTrigger

Applies To

GX5296, GX5961, File

Purpose

Sets the specified PXI trigger line setting.

Syntax

GtDio6xTrigConfigSetPxiTrigger (nHandle, nPxiTriggerLine, nPxiTriggerSource, bEnable, bInvertTriggerSource, 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.

nPxiTriggerLine
SHORT
Specified PXI trigger bus line:

0.    GTDIO6X_PXI_TRIGGER_LINE0: PXI trigger bus line 0.

1.    GTDIO6X_PXI_TRIGGER_LINE1: PXI trigger bus line 1.

2.    GTDIO6X_PXI_TRIGGER_LINE2: PXI trigger bus line 2.

3.    GTDIO6X_PXI_TRIGGER_LINE3: PXI trigger bus line 3.

4.    GTDIO6X_PXI_TRIGGER_LINE4: PXI trigger bus line 4.

5.    GTDIO6X_PXI_TRIGGER_LINE5: PXI trigger bus line 5.

6.    GTDIO6X_PXI_TRIGGER_LINE6: PXI trigger bus line 6.

7.    GTDIO6X_PXI_TRIGGER_LINE7: PXI trigger bus line 7.

nPxiTriggerSource
SHORT
Set the PXI trigger source:

0.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_NONE: No Signal is used as the PXI Bus trigger source.

1.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_0: Auxiliary channel 0 used as the PXI Bus trigger source.

2.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_1: Auxiliary channel 1 used as the PXI Bus trigger source.

3.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_2: Auxiliary channel 2 used as the PXI Bus trigger source.

4.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_3: Auxiliary channel 3 used as the PXI Bus trigger source.

5.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_4: Auxiliary channel 4 used as the PXI Bus trigger source (only GX5961).

6.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_5: Auxiliary channel 5 used as the PXI Bus trigger source (only GX5961).

7.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_6: Auxiliary channel 6 used as the PXI Bus trigger source (only GX5961).

8.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_7: Auxiliary channel 7 used as the PXI Bus trigger source (only GX5961).

9.    GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_8: Auxiliary channel 8 used as the PXI Bus trigger source (GX5296 TTL Input, GX5961 TTL Input/Output).

10.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_9: Auxiliary channel 9 used as the PXI Bus trigger source (GX5296 TTL Input, GX5961 TTL Input/Output).

11.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_10: Auxiliary channel 10 used as the PXI Bus trigger source (GX5296 TTL Input, GX5961 TTL Input/Output).

12.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_11: Auxiliary channel 11 used as the PXI Bus trigger source (GX5296 TTL Input, GX5961 TTL Input/Output).

13.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_PULSE_GEN: Pulse generator used as the PXI Bus trigger source.

14. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_STEP_OUTPUT_FLAG_0: The current Step’s output flag 0 used as the PXI Bus trigger source, see GtDio6xStepSetOutputFlag API.

15. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_STEP_OUTPUT_FLAG_1: The current Step’s output flag 1 used as the PXI Bus trigger source, see GtDio6xStepSetOutputFlag API.

16. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_SEQ_SYNC_OUTPUT_1: The sequencer sync output 1 used as the PXI Bus trigger source, see GtDio6xSequencerSetSyncPulseSource and GtDio6xSequencerSetSyncPulseParameters API.

17. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_SEQ_SYNC_OUTPUT_2: The sequencer sync output 2 used as the PXI Bus trigger source, see GtDio6xSequencerSetSyncPulseSource and GtDio6xSequencerSetSyncPulseParameters API.

18. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_CH_COMPARE_0: Channel compare 0 used as the PXI Bus trigger source, see GtDio6xSequencerSetChannelsCompareTrigger API.

19. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_CH_COMPARE_1: Channel compare 1 used as the PXI Bus trigger source, see GtDio6xSequencerSetChannelsCompareTrigger API.

20. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_CH_COMPARE_2: Channel compare 2 used as the PXI Bus trigger source, see GtDio6xSequencerSetChannelsCompareTrigger API.

21. GTDIO6X_PXI_BUS_TRIGGER_SOURCE_CH_COMPARE_3: Channel compare 3 used as the PXI Bus trigger source, see GtDio6xSequencerSetChannelsCompareTrigger API.

22.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_IDLE_STEP_RUNNING: Running the idle step used as the PXI Bus trigger source, see GtDio6xSequencerGetStatus API .

23.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_SEQ_RUNNING: Sequencer is running used as the PXI Bus trigger source, see GtDio6xSequencerGetStatus API .

24.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_ERROR_PULSE: The error pulse used as the PXI Bus trigger source.

25.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_PASS_VALID: Valid pass used as the PXI Bus trigger source.

26.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_STEP_RESET: The current Step’s reset settings used as the PXI Bus trigger source.

27.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_DRIVERS_DISABLED: Whenever the output drivers are disabled used as the PXI Bus trigger source, see GtDio6xSequencerGetStatus API.

28.  GTDIO6X_PXI_BUS_TRIGGER_SOURCE_MASTER_RESET: Global reset used as the PXI Bus trigger source.

bEnable
BOOL
Sets the trigger state as follows:

0.    FALSE: Disable.

1.    TRUE: Enable.

bInvertTriggerSource
BOOL
Set the trigger inverter state as follows:

0.    FALSE: Disable signal inverter, do not modify input signal before testing.

1.    TRUE: Enable signal inverter, invert input signal before testing.

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

Comments

The PXI Triggers are used to synchronize events across the backplane. The PXI Triggers’ drive enable must be set before it can drive a PXI trigger signal across the backplane. The PXI triggers can be set using GtDio6xSetPXITriggers.

Example

The following example set the PXI Bus Trigger line 1 source to Auxiliary channel 0 used as the PXI Bus trigger source and set the trigger inverter state to TRUE, and returns the settings:

 

SHORT nPxiTriggerSource;

BOOL  bInvert;

BOOL  bEnable;

SHORT nStatus;

 

GtDio6xTrigConfigSetPxiTrigger (nHandle, GTDIO6X_PXI_TRIGGER_LINE1, GTDIO6X_PXI_BUS_TRIGGER_SOURCE_AUX_0, TRUE, TRUE, &nStatus);

GtDio6xTrigConfigGetPxiTrigger (nHandle, GTDIO6X_PXI_TRIGGER_LINE1, &nPxiTriggerSource, &bEnable, &bInvert, &nStatus);

 

See Also

GtDio6xTrigConfigSetHaltTrigger, GtDio6xTrigConfigSetJumpTrigger, GtDio6xTrigConfigSetLocalBusTriggerSource, GtDio6xTrigConfigSetPauseResumeTrigger, GtDio6xTrigConfigSetPxiTrigger, GtDio6xTrigConfigSetRunTrigger, GtDio6xTrigConfigSetStopTrigger, GtDio6xGetErrorString