GX5280, GX5290, GX5290e, GX5295, File
Sets the specified PXI Trigger Bus Line mode.
DioSetupPxiTriggerBusLineMode (nMasterHandle, nLine, nMode, pnStatus)
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master or File board handle. |
nLine |
SHORT |
PXI Trigger Bus Line:0 DIO_PXI_TRIGGER_BUS_LINE01 DIO_PXI_TRIGGER_BUS_LINE12 DIO_PXI_TRIGGER_BUS_LINE23 DIO_PXI_TRIGGER_BUS_LINE34 DIO_PXI_TRIGGER_BUS_LINE45 DIO_PXI_TRIGGER_BUS_LINE56 DIO_PXI_TRIGGER_BUS_LINE67 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. |
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.
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);