CalScopeGetError

Purpose

Returns a string containing information about a status code.

Syntax

CalScopeGetError (hHandle, lStatus, psError, plStatus)

Parameters

Name
Type
Comments
hHandle
LONG
Handle for an oscilloscope.
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];

 

CalScopeGetError (lHandle, lErrorStatus, szError, &lStatus);

printf(“Error Status code %d is: %s”, lErrorStatus, szError);