Example 4: db measurement, Example 4: db measurement -9 – RIGOL DM3058 User Manual
Page 182

RIGOL
Programming Guide for DM3058/DM3058E
6-9
Example 4: dB Measurement
Purpose: Use commands to perform dB measurement.
dB is a common measurement unit, which is frequently used in electrician, wireless,
mechanics, oscillatory surge, mechanical power, acoustics and some other fields.
The programming implementations ——RIGOL Commands
0 *RST
/* Reset the instrument */
1 cmdset rigol /* Select RIGOL commands */
2 *IDN?
/* Query the equipment ID and confirm if the
multimeter works normally */
3 /* Connect the test leads under AC voltage measurement */
4 :function:voltage:AC
/* Enable the AC voltage measurement */
5 :measure:voltage:AC
6 :calculate:function DB /* Enable dB measurement */
7 :calculate:DB:reference
8 :calculate:DB?
/* Query the measured value */
9 /* Return value */
The programming implementations——Agilent Commands
0 *CLS
/* Clear the instrument state */
1 cmdset agilent /* Select Agilent commands */
2 *IDN?
/* Query the equipment ID and confirm if the
multimeter works normally */
3 /* Connect the test leads for AC voltage measuring */
4 conf:volt:ac
range */
5 calc:stat on /* Enable the math function */
6 calc:func db /* Enable the dB measurement*/
7 calc:db:ref
8 calc:db:ref? /* Query the measured value */
9 /* Return value */
Explanations:
1. When finish the setting of “dB reference value” in line 7, the measured result of
dB will be shown on the screen, but the result can not be returned since there is