Sets the specified PXI trigger bus line controlling the specified group outputs states.
Gx5642SetPxiTriggerBusToGroupOutputState (nHandle, nGroup, nLine, bEnable, pnStatus)
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) |
nLine |
SHORT |
PXI Trigger Line number:0. GX5642_XTRIGGER_LINE0: Line 01. GX5642_XTRIGGER_LINE1: Line 12. GX5642_XTRIGGER_LINE2: Line 23. GX5642_XTRIGGER_LINE3: Line 34. GX5642_XTRIGGER_LINE4: Line 45. GX5642_XTRIGGER_LINE5: Line 56. GX5642_XTRIGGER_LINE6: Line 67. GX5642_XTRIGGER_LINE7: Line 7 |
bEnable |
BOOL |
Specified PXI trigger line state0. 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. |
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.
The following example sets the associated PXI trigger line with group 0 and its state:
BOOL bEnable;
SHORT nLine;
Gx5642SetPxiTriggerBusToGroupOutputState (nHandle, GX5642_GROUP0, GX5731_XTRIGGER_LINE1, TRUE, &nStatus);
Gx5642GetPxiTriggerBusToGroupOutputState, Gx5642SetGroupTTLPortDirection, Gx5642SetGroupTTLPort, Gx5642SetGroupMode, GxPioGetErrorString