310
!
320
!
Subprogram Scan_100
µ
s.
330
!
340
SUB Scan_100us
350
COM @Sys,@Dvm,@Sw
360
DIM Readings(0:15)
370
!
380
!
Clear and reset multimeter.
390
!
400
CLEAR @Dvm
410
OUTPUT @Dvm"*RST;*CLS;*OPC?"
420
ENTER @Dvm;A
430
!
440
!
Clear and reset switch.
450
!
460
CLEAR @Sw
470
OUTPUT @Sw;"*RST;*CLS;*OPC?"
480
ENTER @Sw;A
490
!
500
!
Send commands to multimeter.
510
!
520
OUTPUT @Dvm;"CONF:VOLT:DC 11"
530
OUTPUT @Dvm;"VOLT:APER 100E-6"
540
OUTPUT @Dvm;"CAL:ZERO:AUTO ONCE"
550
OUTPUT @Dvm;"TRIG:SOUR EXT;COUNT 16"
560
OUTPUT @Dvm;"*OPC?"
570
ENTER @Dvm;A
580
OUTPUT @Dvm;"INIT"
590
!
600
!
Send commands to switch.
610
!
620
OUTPUT @Sw;"OUTP ON"
630
OUTPUT @Sw;"TRIG:SOUR EXT"
640
OUTPUT @Sw;"SCAN:MODE VOLT"
650
OUTPUT @Sw;"SCAN:PORT ABUS"
660
OUTPUT @Sw;"SCAN (@100:115)"
670
OUTPUT @Sw;"*OPC?"
680
ENTER @Sw;A
690
!
700
!
Get readings.
710
!
720
Start=TIMEDATE
730
OUTPUT @Sw;"INIT"
740
OUTPUT @Dvm;"FETCH?"
750
ENTER @Dvm;Readings(*)
760
Stop=TIMEDATE
765
PRINT "Scan Rate with Multimeter Aperture at 100us ";16/(Stop-Start)
770
SUBEND
780
!
790
!
Subprogram Scan_10
µ
s.
800
!
810
SUB Scan_10us
820
COM @Sys,@Dvm,@Sw
830
DIM Readings(0:15)
840
!
Continued on Next Page
72 Using the HP E1326B/E1411B Multimeter
Chapter 3
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com