Example 7: Store and Racall the Presetting
Users store current operation state (active function, range, measuring rate and so on)
to the storage of DM3058, and recall the state at the next time.
The programming steps——RIGOL Commands:
0 *RST /*Reset the instrument for preparing measurement*/
1 cmdset□rigol /*Select RIGOL commands*/
2 *IDN? /*Query equipment ID to confirm if the
instrument works normally*/
3 /*Connect the test leads under resistance measurement mode*/
4 :function:resistance /*Enable resistance measurement function*/
5 :measure:resistance□2 /*Set the measuring range to 20 kΩ*/
6 :rate:resistance□medium /*Set the measuring rate to medium*/
7 :calculate:function□AVERAGE /*Enable average calculation function*/
8 *sav□1 /*Store current state to storage area 1*/
9 :calculate:function□none /*Exit calculation function*/
10 :function:voltage:DC /*Enable DC voltage measuring function*/
11 :measure:voltage:DC□2 /*Set the measuring range to 20 V*/
12 :rate:voltage:DC□slow /*Set the measuring rate to slow*/
13 :calculate:limit:lower□<value1> /*Set the lower limit*/
14 :calculate:limit:upper□<value2> /*Set the upper limit*/
15 :calculate:function□limit /*Enable limit calculation function*/
16 *sav□2 /*Store current state to storage area 2*/
17 :calculate:function□none /*Exit calculation function*/
18 :function:frequency /*Enable frequency measuring function*/
19 *rcl□1 /*Recall state 1*/
20 *rcl□2 /*Recall state 2*/