Using CONFigure with a Math Operation
The following example uses
CONFigure
with the dBm math operation.
The
CONFigure
command gives you a little more programming
flexibility than the
MEASure?
command. This allows you to
“incrementally” change the multimeter’s configuration. The example is
shown in HP BASIC and QuickBASIC (
see next page
).
10 DIM Rdgs(1:5)
20 ASSIGN @Dmm TO 722
30 CLEAR 7
! Clear HP-IB and dmm
40 OUTPUT @Dmm; "*RST"
! Reset dmm
50 OUTPUT @Dmm; "*CLS"
! Clear dmm status registers
60 OUTPUT @Dmm; "CALC:DBM:REF 50"
! 50 ohm reference resistance
70 OUTPUT @Dmm; "CONF:VOLT:AC 1,0.001" ! Set dmm to 1 amp ac range
80 OUTPUT @Dmm; "DET:BAND 200"
! Select 200 Hz (fast) ac filter
90 OUTPUT @Dmm; "TRIG:COUN 5"
! Dmm will accept 5 triggers
100 OUTPUT @Dmm; "TRIG:SOUR IMM"
! Trigger source is IMMediate
110 OUTPUT @Dmm; "CALC:FUNC DBM"
! Select dBm function
120 OUTPUT @Dmm; "CALC:STAT ON"
! Enable math
130 OUTPUT @Dmm; "READ?"
! Take readings; send to output buffer
140 ENTER @Dmm; Rdgs(*)
150 PRINT USING "K,/"; Rdgs(*)
160 END
HP-IB Operation Using HP BASIC
Chapter 6 Application Programs
Using CONFigure with a Math Operation
186
Summary of Contents for 34401A
Page 12: ...1 Quick Start 1 ...
Page 26: ...2 Front Panel Menu Operation 2 ...
Page 50: ...3 Features and Functions 3 ...
Page 103: ...4 Remote Interface Reference 4 ...
Page 135: ...SCPI Status System 4 Chapter 4 Remote Interface Reference The SCPI Status Model 135 ...
Page 170: ...5 Error Messages 5 ...
Page 182: ...6 Application Programs 6 ...
Page 196: ...7 Measurement Tutorial 7 ...
Page 214: ...8 Specifications 8 ...