Closes a Global bus relay.
Gx6188GlobalBusClose (nHandle, nChannel, nSelectorBus, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6188 board. |
nChannel |
SHORT |
Global Bus numbers are:0. GX6188_GLOBAL_BUS_11. GX6188_GLOBAL_BUS_22. GX6188_GLOBAL_BUS_33. GX6188_GLOBAL_BUS_44. GX6188_GLOBAL_BUS_55. GX6188_GLOBAL_BUS_66. GX6188_GLOBAL_BUS_77. GX6188_GLOBAL_BUS_8 |
nSelectorBus |
SHORT |
Selector Bus numbers are:0. GX6188_SELECTOR_BUS_A1. GX6188_SELECTOR_BUS_B2. GX6188_SELECTOR_BUS_C3. GX6188_SELECTOR_BUS_D4. GX6188_SELECTOR_BUS_E5. GX6188_SELECTOR_BUS_F6. GX6188_SELECTOR_BUS_G7. GX6188_SELECTOR_BUS_H |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function connects the specified Global Bus channel located at J4 to the specified selector bus.
The following example closes the relay between global bus 8 and Selector Bus H:
Gx6188GlobalBusClose (nHandle, GX6188_GLOBAL_BUS_8, GX6188_SELECTOR_BUS_H, &nStatus);
Gx6188GlobalBusGetChannel, Gx6188GlobalBusOpen, GxSWGetErrorString