CalPwrMeterGetError

Purpose

Returns the error message from power meter.

Syntax

CalPwrMeterGetError (lStatus, psError, plStatus)

Parameters

Name
Type
Comments
lStatus
LONG
Status of the power meter.
psError
PSTR
Error String returned from the power meter.
plStatus
PLONG
Returned status: 0 on success, negative number on failure.

Comments

This function gets current error string corresponding to the error status.

Example

The following example gets the channel 0 state:

 

LONG   lError, lStatus;

CHAR   szError[256];

 

CalPwrMeterGetError (lError, szError, &lStatus);

 

See Also

CalPwrMeterInitialize