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
Содержание 34401A
Страница 12: ...1 Quick Start 1 ...
Страница 26: ...2 Front Panel Menu Operation 2 ...
Страница 50: ...3 Features and Functions 3 ...
Страница 103: ...4 Remote Interface Reference 4 ...
Страница 135: ...SCPI Status System 4 Chapter 4 Remote Interface Reference The SCPI Status Model 135 ...
Страница 170: ...5 Error Messages 5 ...
Страница 182: ...6 Application Programs 6 ...
Страница 196: ...7 Measurement Tutorial 7 ...
Страница 214: ...8 Specifications 8 ...
Страница 222: ...Product Dimensions TOP Product Dimensions All dimensions are shown in millimeters 8 Chapter 8 Specifications 223 ...