Example 4: dB Measurement
Purpose: Use commands to perform dB measurement.
dB measurement unit which is frequently used in electrician, wireless, mechanics,
oscillatory surge, mechanical power, acoustics and some other fields.
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 AC voltage measure mode*/
4 :function:voltage:AC /*Enable AC voltage measuring function*/
5 :measure:voltage:AC□<range> /*Set the measuring range*/
6 :calculate:function□DB /*Enable dB measuering function*/
7 :calculate:DB:reference□<value> /*Set the ―dB setting‖ value*/
8 :calculate:DB? /*Query the measured value*/
9 /*Return value*/