geterror

Check and return error message from instrument

Syntax

msg = geterror(obj)

Arguments

obj

A device object.

msg

The error message returned from the instrument.

Description

msg = geterror(obj) checks the instrument associated with the device object specified by obj for an error message. If an error message exists, it is returned to msg. The interpretation of msg will vary based on the instrument.

Was this topic helpful?