GtDio6xOutputGetOverCurrentStatus

Applies To

GX5961, GX5964, File

Purpose

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

Syntax

GtDio6xOutputGetOverCurrentStatus (nHandle, pdwOverCurrent, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Board handle is a session identifier returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.
pdwOverCurrent
PDWORD
Channels over current flags states, each bit corresponds to a channel, i.e. bit 0 represents channel 0 and bit 31 represents channel 31.
A bit with logic high signals that an over current condition occurs, a low signal that no over current occurs.
Once over current condition has been detected the corresponded channels’ driver is placed in HiZ until the flag is cleared.
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 high and low flags states can be read back and set dynamically at any time even while the board is running mode.

Example

The following example returns all 32 channels over current states for the specified board:

 

SHORT nStatus;

DWORD dwOverCurrent

GtDio6xOutputGetOverCurrentStatus (nHandle, & dwOverCurrent, &nStatus);

 

See Also

GtDio6xOutputSetOverCurrentControl, GtDio6xChannelSetSourceCurrentLimits, GtDio6xChannelGetSourceCurrentLimits, GtDio6xGetErrorString