This function clears the latched overcurrent bits and disables the open collectors.
Gx3722OpenCollectorResetOvercurrent (nHandle, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Overcurrent will be flagged with greater than 2.5 Amperes are present on an open collector channel. This function resets all three channels.
The following example enables the open collector and retrieves the overcurrent state of Open Collector channel 1, then resets the open collectors:
SHORT nOvercurrent;
Gx3722OpenCollectorSetEnable (nHandle, GX3722_OPEN_COLLECTOR_ENABLE, &nStatus);
Gx3722OpenCollectorGetOvercurrent (nHandle, &nOvercurrent, &nStatus);
if (nOvercurrent==1)
{
Printf(“OC1 was overcurrent”);
Gx3722OpenCollectorResetOvercurrent (nHandle, &nStatus);
}
Gx3722OpenCollectorSetEnable, Gx3722OpenCollectorGetEnable, Gx3722OpenCollectorGetOvercurrent, GxFpgaGetErrorString