CalPsGetError

Purpose

Returns a string containing information about a status code.

Syntax

CalPsGetError (hHandle, lStatus, psError, plStatus)

Parameters

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.

Example

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);