Gx6338GroupReset

Purpose

Opens all relays of the specified group.

Syntax

Gx6338GroupReset (nHandle, nGroup, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6338 board.
nGroup
SHORT
Group number: 0-2, represents group A-C
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

 

 Example

The following example initializes the driver and then resets 38 relays of group A.

 

Gx6338Initilize (1, &nHandle, &nStatus);

if (nStatus < 0)

return nStatus; // return error

Gx6338GroupReset (nHandle, 0, &nStatus);

 

See Also

Gx6338Initialize, GxSWGetErrorString, Gx6338SetGroupChannels