GtDio6xOutputResetOverCurrentStates

Applies To

GX5961, GX5964

Purpose

Resets all 32 channels over current states for the specified board.

Syntax

GtDio6xOutputResetOverCurrentStates (nHandle, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

Note: over current condition can only be cleared by calling GtDio6xOutputResetOverCurrentStates. After the over current is cleared the channel output driver will be active again.

Channels over current flags states can be reset dynamically at any time even while the board is running mode.

Example

The following example resets all channels over current flags states:

 

SHORT nStatus;

 

GtDio6xOutputResetOverCurrentStates (nHandle, &nStatus);

 

See Also

GtDio6xOutputSetOverCurrentControl, GtDio6xOutputGetOverCurrentControl, GtDio6xChannelSetSourceCurrentLimits, GtDio6xGetErrorString