Gx6188Reset

Purpose

Opens all the board relays.

Syntax

Gx6188Reset (nHandle, pnStatus)

Parameters

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

Comments

This function opens all relays on the board, clears all interrupt status flags and disables all interrupts.

Example

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

 

Gx6188Initialize (10, FALSE, &nHandle, &nStatus);

if (nStatus < 0)

    return nStatus;    // return error

Gx6188Reset (nHandle, &nStatus);

 

See Also

Gx6188Initialize, GxSWGetErrorString