Opens a relay specified by a channel number.
Gx6196Open (nHandle, nChannel, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6196 board. |
nChannel |
SHORT |
Specified Relay to open (0-95). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Each relay (K1to K96) can be opened using this function. Note that the relays marked K1 to K96 are addressed as Channel 0 to 95.
The following example opens relay 95:
Gx6196Open(nHandle, 95, &nStatus);