Returns a string containing information about a status code.
CalPsGetError (hHandle, lStatus, psError, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Power Supply. |
lStatus |
LONG |
Error status to decode. |
psError |
PSTR |
Returns the error message associated with lStatus. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
The following example gets the error information for lErrorStatus:
LONG lHandle, lErrorStatus, lStatus;
CHAR szError[256];
CalPsGetError (lHandle, lErrorStatus, szError, &lStatus);
Printf(“Error Status code %d is: %s”, lErrorStatus, szError);