Gx5642GetPxiTriggerBusToGroupOutputState

Purpose

Returns the specified PXI trigger bus line controlling the specified group outputs states.

Syntax

Gx5642GetPxiTriggerBusToGroupOutputState (nHandle, nGroup, pnLine, pbEnable, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5642 board.
nGroup
SHORT
Group value is as follows:
0. GX5642_GROUP0 (channels 0 to 31)
1. GX5642_GROUP1(channels 32 to 63)
pnLine
PSHORT
Returned PXI Trigger Line number:
0. GX5642_XTRIGGER_LINE0: Line 0
1. GX5642_XTRIGGER_LINE1: Line 1
2. GX5642_XTRIGGER_LINE2: Line 2
3. GX5642_XTRIGGER_LINE3: Line 3
4. GX5642_XTRIGGER_LINE4: Line 4
5. GX5642_XTRIGGER_LINE5: Line 5
6. GX5642_XTRIGGER_LINE6: Line 6
7. GX5642_XTRIGGER_LINE7: Line 7
pbEnable
PBOOL
Specified PXI trigger line state
0. FALSE: the specified PXI trigger line does not control the specified group outputs.
1. TRUE: the specified PXI trigger line controls the specified group outputs. Whenever the specified PXI trigger line is high the specified group outputs are enabled, whenever the specified PXI trigger line is low the specified group outputs are disabled.
pnStatus

 

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

The function allows the user to control all 32 channels of the specified group to either be enabled or disabled by controlling a single PXI trigger bus line.et.

Example

The following example returns the associated PXI trigger line with group 0 and its state:

 

BOOL bEnable;

SHORT nLine;

Gx5642GetPxiTriggerBusToGroupOutputState (nHandle, GX5642_GROUP0, &nLine, &bEnable, &nStatus);

 

See Also

Gx5642SetPxiTriggerBusToGroupOutputState, Gx5642SetGroupTTLPortDirection, Gx5642SetGroupTTLPort, Gx5642SetGroupMode, GxPioGetErrorString