Using Configure With A Math Operation - HP 34401A User Manual

Hide thumbs Also See for 34401A:
Table of Contents

Advertisement

Chapter 6 Application Programs

Using CONFigure with a Math Operation

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).
HP-IB Operation Using HP BASIC
10
DIM Rdgs(1:5)
20
ASSIGN @Dmm TO 722
30
CLEAR 7
40
OUTPUT @Dmm; "*RST"
50
OUTPUT @Dmm; "*CLS"
60
OUTPUT @Dmm; "CALC:DBM:REF 50"
70
OUTPUT @Dmm; "CONF:VOLT:AC 1,0.001" ! Set dmm to 1 amp ac range
80
OUTPUT @Dmm; "DET:BAND 200"
90
OUTPUT @Dmm; "TRIG:COUN 5"
100
OUTPUT @Dmm; "TRIG:SOUR IMM"
110
OUTPUT @Dmm; "CALC:FUNC DBM"
120
OUTPUT @Dmm; "CALC:STAT ON"
130
OUTPUT @Dmm; "READ?"
140
ENTER @Dmm; Rdgs(*)
150
PRINT USING "K,/"; Rdgs(*)
160
END
186
! Clear HP-IB and dmm
! Reset dmm
! Clear dmm status registers
! 50 ohm reference resistance
! Select 200 Hz (fast) ac filter
! Dmm will accept 5 triggers
! Trigger source is IMMediate
! Select dBm function
! Enable math
! Take readings; send to output buffer

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

34401-90004

Table of Contents