DioSetupPxiTriggerBusLineMode

Applies To

GX5280, GX5290, GX5290e, GX5295, File

Purpose

Sets the specified PXI Trigger Bus Line mode.

Syntax

DioSetupPxiTriggerBusLineMode (nMasterHandle, nLine, nMode, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
Master or File board handle.
nLine
SHORT
PXI Trigger Bus Line:
0  DIO_PXI_TRIGGER_BUS_LINE0
1  DIO_PXI_TRIGGER_BUS_LINE1
2  DIO_PXI_TRIGGER_BUS_LINE2
3  DIO_PXI_TRIGGER_BUS_LINE3
4  DIO_PXI_TRIGGER_BUS_LINE4
5  DIO_PXI_TRIGGER_BUS_LINE5
6  DIO_PXI_TRIGGER_BUS_LINE6
7  DIO_PXI_TRIGGER_BUS_LINE7
nMode
SHORT
PXI Trigger Bus Line mode:
0  DIO_PXI_TRIGGER_BUS_LINE_MODE_DISABLE: the specified PXI Trigger Line is disabled.
1  DIO_PXI_TRIGGER_BUS_LINE_MODE_PAUSE_INPUT: the specified PXI Trigger Line is set to as input pause.
2  DIO_PXI_TRIGGER_BUS_LINE_MODE_PAUSE_OUTPUT: the specified PXI Trigger Line is set to as output pause.
3  DIO_PXI_TRIGGER_BUS_LINE_MODE_TRIGGER_INPUT: the specified PXI Trigger Line is set to as input trigger.
4  DIO_PXI_TRIGGER_BUS_LINE_MODE_TRIGGER_OUTPUT: the specified PXI Trigger Line is set to as output trigger.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function allows you to route trigger and paused signals to a specific PXI Trigger Bus line. The trigger and paused signals can be outputs to other Master DIO’s or instruments that share the PXI Trigger Bus and/or inputs signals. The Trigger Bus Line assignments are mutually exclusive and can be set in tandem.

Example

The following example sets the PXI Trigger Bus Line number 1 mode as output trigger:

 

DioSetupPxiTriggerBusLineMode (nMasterHandle, DIO_PXI_TRIGGER_BUS_LINE1, DIO_PXI_TRIGGER_BUS_LINE_MODE_TRIGGER_OUTPUT, &nStatus);

 

See Also

DioGetPxiTriggerBusLineMode, DioGetErrorString