Gx6115Reset

Purpose

Opens all relays (1-15) and relay drivers (1-3) at the specified board.

Syntax

Gx6115Reset (nHandle, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6115 board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function is normally called after calling the Gx6115Initialize function, since the initialize function will not reset the board.

Example

The following example initializes the driver and then resets the board.

 

Gx6115Initialize(1, &nHandle, &nStatus);

if (nStatus<0)

return nStatus; // return error

Gx6115Reset (nHandle, &nStatus);

 

See Also

Gx6115Initialize, GxSWGetErrorString, Gx6115SetChannels