Returns the PXI trigger line state.
Applied To
GX1649, GX1649-1
GxAoGetPxiTriggerLine (nHandle, pnLine, pbEnabled, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1649 board. |
pnLine |
PSHORT |
Returns the currently selected trigger line.0. GXAO_PXI_TRIGGER_BUS_LINE01. GXAO_PXI_TRIGGER_BUS_LINE12. GXAO_PXI_TRIGGER_BUS_LINE23. GXAO_PXI_TRIGGER_BUS_LINE34. GXAO_PXI_TRIGGER_BUS_LINE45. GXAO_PXI_TRIGGER_BUS_LINE56. GXAO_PXI_TRIGGER_BUS_LINE67. GXAO_PXI_TRIGGER_BUS_LINE7 |
pbEnabled |
BOOL |
Returns the state of the currently selected trigger line. TRUE (1) to enable outputting the sample clock on the trigger line, FALSE (0) disables the clock. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The sample clock can only be connected to one PXI trigger bus line at a time. If pbEnabled is TRUE, the sample clock is enabled on the current trigger line. If FALSE, then it is disabled and the trigger line is not being driven by the GXAO board.
The following example retrieves the connected PXI Trigger Line and its state:
SHORT nLine, nStatus;
BOOL bEnabled;
GxAoGetPxiTriggerLine (nHandle, &nLine, &bEnabled, &nStatus);