Returns a Global bus relay's state.
Gx6188GlobalBusGetChannel (nHandle, nChannel, nSelectorBus, pnState, 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 |
pnState |
PSHORT |
Returns the state of a matrix relay:0. GX6188_RELAY_OPEN1. GX6188_RELAY_CLOSED |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following returns the connection state of Global Bus 6 and Selector Bus A:
Gx6188GlobalBusGetChannel (nHandle, 42, GX6188_GLOBAL_BUS_A, &nState, &nStatus);
Gx6188GlobalBusClose, Gx6188GlobalBusOpen, GxSWGetErrorString