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