SCPI.SYSTem.ERRor

Object type

Property (Read-only)

Syntax

Err = SCPI.SYSTem.ERRor

Description

This command reads the oldest error from the list of errors stored in the error queue of the E5071C. The read-out error is deleted from the error queue. The size of the error queue is 100.

Executing SCPI.IEEE4882.CLS command clears the errors stored in the error queue.

Variable

Parameter

Err

Description

Indicates 2-element array data (for error).

  • Err(0) :Error number

  • Err(1) :Error message

The index of the array starts from 0.

Data type

Variant type (Variant)

Note

If no error is stored in the error queue, 0 and "No error" are read out as the error number and the error message.

Examples

Dim Err As Variant
Err = SCPI.SYSTem.ERRor

Related objects

SCPI.IEEE4882.CLS

Equivalent key

No equivalent key is available on the front panel.

Equivalent SCPI command

Syntax

:SYSTem:ERRor?

Query response

{numeric},{string}<newline><^END>

{numeric}:

Error number

{string}:

Error message (a character string with double quotation marks ("))

If no error is stored in the error queue, 0 and "No error" are read out as the error number and the error message.

Example of use

10 OUTPUT 717;":SYST:ERR?"
20 ENTER 717;A,B$