Sets the specified group channels output states using the PXI trigger bus.
Gx5641SetPxiTriggerBusToGroupOutputState (nHandle, nGroup, nLine, bEnable, 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) |
nLine |
SHORT |
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. |
bEnable |
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 sets 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 as it was set by the card, when it goes low it will override any settings and all the groups outputs will be set to tri-state.
Note: there is only one PXI trigger line that can be used to control the outputs of both groups.
The following example sets PXI trigger bus line number 0 to group 0 output state:
Gx5641SetPxiTriggerBusToGroupOutputState (nHandle, GX5641_GROUP0, GX5641_PXI_TRIGGER_LINE0, TRUE, &nStatus);
Gx5641GetPxiTriggerBusToGroupOutputState, Gx5641SetGroupTTLPort, Gx5641SetGroupMode, GxPioGetErrorString