Example 8: querying the error information, Example 8: querying the error information -17 – RIGOL DM3058 User Manual

Page 190

Advertising
background image

RIGOL

Programming Guide for DM3058/DM3058E

6-17

Example 8: Querying the Error Information


The status register provided enables user to diagnose the current error operation on
the basis of its query function, searching the error reason. For the detailed commands,
refer to Chapter 2. As the commands system of status register is in common use in all
RIGOL, Fluke and Agilent, take RIGOL commands for example.

The programming implementations
——RIGOL Commands:
0 *RST

/* Reset the instrument */

1 cmdset rigol

/* Select Agilent commands */


2 *cls

/* Clear the instrument state */

3 :measure?
4 :measure?

/* Beeping */

5 SYST:ERR?
6 Return “query interrupted”
7 *esr?
8 Return 4

9 *cls
10 **cls

/*Beeping*/

11 SYST:ERR?
12 Return “syntax error”
13 *esr?
14 Return 32

15 *cls
16 cmdset

/*Beeping*/

17 SYST:ERR?
18 Return “Parameter error”
19 *esr?
20 Return 16

21 *cls
22 SYST:ERR?

/* Read data forcibly and emit beep once */

23 Return “Query Unterminated”
24 *esr?

Advertising
This manual is related to the following products: