Gx6196Reset

Purpose

Resets board.

Syntax

Gx6196Reset (nHandle, pnStatus)

Parameters

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

Comments

The function is typically called after calling the Gx6196Initialize function.

This function opens all relays, sets all PIO outputs to 0 and disables all PIO outputs.

Example

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

 

Gx6196Initilize (1, &nHandle, &nStatus);

if (nStatus < 0)

    return nStatus;    // return error

Gx6196Reset (nHandle, &nStatus);

 

See Also

Gx6196Initialize, GxSWGetErrorString