Opens the specified relay.
Gx6338Open (nHandle, nChannel, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6338 board. |
nChannel |
SHORT |
Specifies the relay number. Can be 1 to 114. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx6338GetChannel function can be used to retrieve the current channel state.
The following example opens relay 1 and relay 22:
Gx6338Open (nHandle, 1, &nStatus);
Gx6338Open (nHandle, 22, &nStatus);
Gx6338Initialize, GxSWGetErrorString, Gx6338Reset, Gx6338Close