Gx6315Reset

Purpose

Opens all relays (1-45) and relay drivers (1-9) at the specified board.

Syntax

Gx6315Reset (nHandle, pnStatus)

Parameters

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

Comments

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

Example

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

 

Gx6315Initialize(1, &nHandle, &nStatus);

if (nStatus<0)

return nStatus; // return error

Gx6315Reset (nHandle, &nStatus);

 

See Also

Gx6315Initialize, GxSWGetErrorString, Gx6315SetGroupChannels.