GX5055
Returns the channels over-current enable states.
DioGetOutputOverCurrentEnable (nHandle, pdwOverCurrentEnable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Board or File board handle. |
pdwOverCurrentEnable |
PDWORD |
Over-current flag state, each bit corresponds to a channel i.e. bit 0 represents channel 0 and bit 31 represents channel 31.
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
NOTE: over current condition can only be cleared by calling DioResetOutputOverCurrentStates. 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 DIO is running mode.
The following example reads back the over current protection flags:
DWORD dwOverCurrentEnable;
DioGetOutputOverCurrentEnable (nHandle, & dwOverCurrentEnable, &nStatus);
DioSetupOutputOverCurrentEnable, DioSetupOutputDataFormat, DioSetupInputLoadCommutatingVoltage, DioSetupInputLoadResistance, DioSetupInputThresholdVoltages, DioGetErrorString