GxAoSetPxiTriggerLine

Purpose

Sets the sample clock to the specified PXI trigger line.

Applied To

GX1649, GX1649-1

Syntax

GxAoSetPxiTriggerLine (nHandle, nLine, bEnabled, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX6149 board.
nLine
SHORT
PXI Trigger Line:
0.   GXAO_PXI_TRIGGER_BUS_LINE0
1.   GXAO_PXI_TRIGGER_BUS_LINE1
2.   GXAO_PXI_TRIGGER_BUS_LINE2
3.   GXAO_PXI_TRIGGER_BUS_LINE3
4.   GXAO_PXI_TRIGGER_BUS_LINE4
5.   GXAO_PXI_TRIGGER_BUS_LINE5
6.   GXAO_PXI_TRIGGER_BUS_LINE6
7.   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.

Comments

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.

Example

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);

 

See Also

GxAoGetPxiTriggerLine, GxAoArbSetGroupClock, GxAoGetErrorString