Gx6264GetRelayType

Purpose

Returns the specified board relay type.

Syntax

Gx6264GetRelayType (nHandle, pnRelayType, pnStatus)

Parameters

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.

Comments

None.

Example

The following example checks whether the current relay type is a Type 1 relay:

 

SHORT  nRelayType, nStatus;

...

Gx6264GetRelayType(nHandle, &nRelayType, &nStatus);

 

See Also

GxSWGetErrorString, Gx6264Initialize.