Sets the sample clock to the specified PXI trigger line.
Applied To
GX1649, GX1649-1
GxAoSetPxiTriggerLine (nHandle, nLine, bEnabled, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX6149 board. |
nLine |
SHORT |
PXI 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 |
bEnabled |
BOOL |
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 bEnabled 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 connects and enables the sample clock at 750 Hz to PXI Trigger Line #3:
SHORT nStatus;
GxAoSetPxiTriggerLine (nHandle, GXAO_PXI_TRIGGER_BUS_LINE3, TRUE, &nStatus);
GxAoGetPxiTriggerLine, GxAoArbSetGroupClock, GxAoGetErrorString