Example 3: dbm measurement, Example 3: dbm measurement -7 – RIGOL DM3058 User Manual
Page 180

RIGOL
Programming Guide for DM3058/DM3058E
6-7
Example 3: dBm Measurement
Purpose: Execute the dBm measurement through command.
dBm is frequently used in Audio signal measurement and analysis.
The programming implementations——RIGOL Commands
0 *RST
/* Reset the instrument */
1 cmdset rigol /* Select Agilent commands */
2 *IDN?
/* Query the equipment ID and confirm if the
multimeter works normally */
3 /* Return RIGOL Technologies,DM3058,DM3A020080808,99.00.00.00.00.00*/
4 :function:resistance
/* Enable resistance measuring function */
5 :measure AUTO /* Set the measuring range to “AUTO” */
6 :measure:resistance?
/* Query the measured resistance */
7 /* The return value is used as the reference resistance for dBm measurement
*/
8 :function:voltage:AC
/* Enable AC voltage measuring function */
9 :measure AUTO
/* Set the measuring range to “AUTO”*/
10 :calculate:function DBM /* Enable dBm measuring function */
11 :calculate:DBM:reference
12 :calculate:DBM?
/* Query the measured result /
13 /* Return value */
Explanations:
1. The operation in line 6 must be done before the next.
2. Before sending the command in line 6, the instrument should be connected under
resistance measure mode.
3. Parameter in command line 11 is the returned value of line 7.