GtDio6xTrigConfigSetLocalBusTriggerSource

Applies To

GX5296, GX5961, GX5964, File

Purpose

Sets the Local Bus trigger setting.

Syntax

GtDio6xTrigConfigSetLocalBusTriggerSource (nHandle, nLocalBus, nLocalBusTriggerSource, 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.

nLocalBus
SHORT
Local Bus number, set to 0.
nLocalBusTriggerSource
SHORT
Used to set the PXI trigger source:

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

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

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

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

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

5.    GTDIO6X_LOCAL_BUS_TRIGGER_SOURCE_AUX_4: Auxiliary channel 4 used as the PXI Bus trigger source. GX5961 only.

6.    GTDIO6X_LOCAL_BUS_TRIGGER_SOURCE_AUX_5: Auxiliary channel 5 used as the PXI Bus trigger source. GX5961 only.

7.    GTDIO6X_LOCAL_BUS_TRIGGER_SOURCE_AUX_6: Auxiliary channel 6 used as the PXI Bus trigger source. GX5961 only.

8.    GTDIO6X_LOCAL_BUS_TRIGGER_SOURCE_AUX_7: Auxiliary channel 7 used as the PXI Bus trigger source. GX5961 only.

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

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

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

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

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

14. GTDIO6X_LOCAL_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_LOCAL_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_LOCAL_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_LOCAL_BUS_TRIGGER_SOURCE_SEQ_SYNC_OUTPUT_2: The sequencer sync output 1 used as the PXI Bus trigger source, see GtDio6xSequencerSetSyncPulseSource and GtDio6xSequencerSetSyncPulseParameters API.

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

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

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

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

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

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

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

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

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

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

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

bInvertTriggerSource
BOOL
Set the Local trigger inverter as follows:

0.  GTDIO6X_LOCAL_NORMAL: Disable signal inverter.

1.  GTDIO6X_LOCAL_INVERTED: Enable signal inverter, the source signal logic will be inverted before being sent to the Sequencer.

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

Comments

The Local Triggers are used to synchronize events across a GX5960 Domain.

The user can also use the GtDio6xTrigConfigSetPxiTrigger API to synchronize events across a GX5960 Domain.

Example

The following example gets the Auxiliary channel 1 used as Local trigger as the local trigger bus source and returns the settings:

 

SHORT nLocalBusTriggerSource, nSignalType

BOOL bInvertTriggerSource;

SHORT nStatus;

 

GtDio6xTrigConfigSetLocalBusTriggerSource (nHandle, 0, GTDIO6X_LOCAL_BUS_TRIGGER_SOURCE_AUX_1, GTDIO6X_LOCAL_INVERTED, pnStatus);

 

GtDio6xTrigConfigGetLocalBusTriggerSource (nHandle, 0, &nLocalBusTriggerSource, &bInvertTriggerSource, pnStatus);

 

See Also

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