Gx6188GlobalBusGetChannel

Purpose

Returns a Global bus relay's state.

Syntax

Gx6188GlobalBusGetChannel (nHandle, nChannel, nSelectorBus, pnState, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6188 board.
nChannel 
SHORT
Global Bus numbers are:
0.      GX6188_GLOBAL_BUS_1
1.      GX6188_GLOBAL_BUS_2
2.      GX6188_GLOBAL_BUS_3
3.      GX6188_GLOBAL_BUS_4
4.      GX6188_GLOBAL_BUS_5
5.      GX6188_GLOBAL_BUS_6
6.      GX6188_GLOBAL_BUS_7
7.   GX6188_GLOBAL_BUS_8  
nSelectorBus  
SHORT
Selector Bus numbers are:
0.      GX6188_SELECTOR_BUS_A
1.      GX6188_SELECTOR_BUS_B
2.      GX6188_SELECTOR_BUS_C
3.      GX6188_SELECTOR_BUS_D
4.      GX6188_SELECTOR_BUS_E
5.      GX6188_SELECTOR_BUS_F
6.      GX6188_SELECTOR_BUS_G
7.   GX6188_SELECTOR_BUS_H
pnState
PSHORT
Returns the state of a matrix relay:
0.      GX6188_RELAY_OPEN
1.   GX6188_RELAY_CLOSED
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following returns the connection state of Global Bus 6 and Selector Bus A:

 

Gx6188GlobalBusGetChannel (nHandle, 42, GX6188_GLOBAL_BUS_A, &nState, &nStatus);

 

See Also

Gx6188GlobalBusClose, Gx6188GlobalBusOpen, GxSWGetErrorString