GX5961, GX5964
Resets all 32 channels over current states for the specified board.
GtDio6xOutputResetOverCurrentStates (nHandle, pnStatus)
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. |
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.
The following example resets all channels over current flags states:
SHORT nStatus;
GtDio6xOutputResetOverCurrentStates (nHandle, &nStatus);
GtDio6xOutputSetOverCurrentControl, GtDio6xOutputGetOverCurrentControl, GtDio6xChannelSetSourceCurrentLimits, GtDio6xGetErrorString