DioSetupControlToPxiTriggerBusLineMode

Applies To

GX5290e, File

Purpose

Sets the control signal to PXI Trigger Line and its state.

Syntax

DioSetupControlToPxiTriggerBusLineMode (nHandle, nControl, nLine, bEnable, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
DIO board or File board handle.
nControl
SHORT
PXI Trigger Bus Control line:
0  DIO_TRIGGER_BUS_RUN_CTRL: Run signal to PXI Trigger Bus line.
1  DIO_TRIGGER_BUS_ARM_CTRL: Arm signal to PXI Trigger Bus line.
2  DIO_TRIGGER_BUS_EXT_CLK_CTRL: External Clock signal to PXI Trigger Bus line.
3  DIO_TRIGGER_BUS_EXT_STROBE_CTRL: External Strobe signal to PXI Trigger Bus line
nLine
SHORT
Control to 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
bEnable
BOOL
PXI Trigger Bus Line state:
0  The specified control to PXI Trigger Line is disabled.
1  The specified control to PXI Trigger Line is enabled.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The DIO domain control signals are using the PXI Trigger Bus lines to distribute those signals.

When using internal clock and strobe only two PXI Trigger Bus lines have to be assigned for the Run and Arm control signals.

Additional lines will be required to be assigned for the external clock and/or external strobe.

The assigned lines will be saved to the INI file to be automatically loaded and applied whenever the DIO is initialized.

By default the DIO will use PXI Trigger Bus lines 0 and 1 for the Run and Arm signals.

Note: The same PXI Trigger Bus line will be used by all DIO boards (Master and Slaves) in the domain.

Example

The following example assigns the PXI Trigger Bus line 0 to the RUN signal:

 

SHORT nStatus;

DioSetupControlToPxiTriggerBusLineMode(nMasterHandle, DIO_TRIGGER_BUS_RUN_CTRL, DIO_PXI_TRIGGER_BUS_LINE0, TRUE, &nStatus);

 

See Also

DioGetControlToPxiTriggerBusLineMode, DioGetErrorString