DioGetControlToPxiTriggerBusLineMode

Applies To

GX5290e, File

Purpose

Returns the specified PXI Trigger Bus Control line signal to PXI Trigger Line and its state.

Syntax

DioGetControlToPxiTriggerBusLineMode (nHandle, nControl, pnLine, pbEnable, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
Master 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
pnLine
PSHORT
Returned 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
pbEnable
PBOOL
Returned 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 returns the specified control signal to PXI Trigger Line and its state:

 

SHORT nStatus, nLine;

BOOL bEnable;

DioGetControlToPxiTriggerBusLineMode(nMasterHandle, nControl, &nLine, &bEnable, &nStatus);

 

See Also

DioSetupControlToPxiTriggerBusLineMode, DioGetErrorString