Using MEASure? for a Single Measurement
The following example uses the
MEASure?
command to make a single
ac current measurement. This is the easiest way to program the
multimeter for measurements. However,
MEASure?
does not offer much
flexibility. The example is shown in HP BASIC and QuickBASIC.
10 REAL Rdg
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; "MEASURE:CURRENT:AC? 1A,0.001MA" ! Set to 1 amp ac range
70 ENTER @Dmm; Rdg
80 PRINT Rdg
90 END
HP-IB Operation Using HP BASIC
REM $Include "QBSetup"
DEV&=722
INFO1$="*RST"
LENGTH1%=LEN(INFO1$)
INFO2$="*CLS"
LENGTH2%=LEN(INFO2$)
INFO3$="MEASURE:CURRENT:AC? 1A,0.001MA"
LENGTH3%=LEN(INFO3$)
Call IOCLEAR(DEV&)
Call IOOUTPUTS(DEV&, INFO1$, LENGTH1%)
Call IOOUTPUTS(DEV&, INFO2$, LENGTH2%)
Call IOOUTPUTS(DEV&, INFO3$, LENGTH3%)
Call IOENTER(DEV&,Rdg)
Print Rdg
END
HP-IB Operation Using QuickBASIC
6
Chapter 6 Application Programs
Using MEASure? for a Single Measurement
185
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 ...