Using Measure? For A Single Measurement - HP 34401A User Manual

Hide thumbs Also See for 34401A:
Table of Contents

Advertisement

Chapter 6 Application Programs

Using MEASure? for a Single Measurement

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.
HP-IB Operation Using HP BASIC
10
REAL Rdg
20
ASSIGN @Dmm TO 722
30
CLEAR 7
40
OUTPUT @Dmm; "*RST"
50
OUTPUT @Dmm; "*CLS"
60
OUTPUT @Dmm; "MEASURE:CURRENT:AC? 1A,0.001MA"
70
ENTER @Dmm; Rdg
80
PRINT Rdg
90
END
HP-IB Operation Using QuickBASIC
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
! Clear HP-IB and dmm
! Reset dmm
! Clear dmm status registers
! Set to 1 amp ac range
6
185

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

34401-90004

Table of Contents