GxAoGetPxiTriggerLine

Purpose

Returns the PXI trigger line state.

Applied To

GX1649, GX1649-1

Syntax

GxAoGetPxiTriggerLine (nHandle, pnLine, pbEnabled, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1649 board.
pnLine
PSHORT
Returns the currently selected 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
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.

Comments

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.

Example

The following example retrieves the connected PXI Trigger Line and its state:

 

SHORT nLine, nStatus;

BOOL  bEnabled;

 

GxAoGetPxiTriggerLine (nHandle, &nLine, &bEnabled, &nStatus);

 

See Also

GxAoSetPxiTriggerLine, GxAoGetErrorString