Returns the specified board relay type.
Gx6264GetRelayType (nHandle, pnRelayType, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to the board. |
pnRelayType |
LPSHORT |
Returns the relay type 0-3:0=Commercial, 1=Not in use, 2=Industrial, 3=Military (future versions). |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
None.
The following example checks whether the current relay type is a Type 1 relay:
SHORT nRelayType, nStatus;
...
Gx6264GetRelayType(nHandle, &nRelayType, &nStatus);