Rigol DM3058 Digital-Multimeter, DMM, DM3058 数据表

产品代码
DM3058
下载
页码 192
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?