Returns the PXI trigger bus to group output state.
Gx5641GetPxiTriggerBusToGroupOutputState (nHandle, nGroup, pnLine, pbEnable, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5641 board. |
nGroup |
SHORT |
Group value is as follows:0. GX5641_GROUP0 (channels 0 to 31)1. GX5641_GROUP1 (channels 32 to 63) |
pnLine |
SHORT |
Returned PXI Trigger Bus Line (one of) that controls the groups’ outputs:0 GX5641_PXI_TRIGGER_LINE0: PXI trigger line 0.1 GX5641_PXI_TRIGGER_LINE1: PXI trigger line 1.2 GX5641_PXI_TRIGGER_LINE2: PXI trigger line 2.3 GX5641_PXI_TRIGGER_LINE3: PXI trigger line 3.4 GX5641_PXI_TRIGGER_LINE4: PXI trigger line 4.5 GX5641_PXI_TRIGGER_LINE5: PXI trigger line 5.6 GX5641_PXI_TRIGGER_LINE6: PXI trigger line 6.7 GX5641_PXI_TRIGGER_LINE7: PXI trigger line 7. |
pbEnable |
BOOK |
All the specified group outputs states will be disabled or enabled as follows:0. Disabled.1. Enabled. |
pnStatus
|
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the assigned PXI trigger bus line number that controls the group’s outputs if enabled. If enabled, whenever the assigned PXI trigger line goes high it will enable the group outputs.
Note: there is only one PXI trigger line that can be used to control the outputs of both groups.
The following example returns the PXI trigger bus to group 0 output state:
SHORT nLine;
BOOL bEnable;
Gx5641GetPxiTriggerBusToGroupOutputState (nHandle, GX5641_GROUP0, &nLine, &bEnable, &nStatus);
Gx5641SetPxiTriggerBusToGroupOutputState, Gx5641SetGroupTTLPort, Gx5641SetGroupMode, GxPioGetErrorString