User`s manual

Additional Function
Using the HP E1345A
Multiplexer
This is an example of how to setup scanning when using an HP E1345A
multiplexer configured as a switchbox and the HP E1326B multimeter used
with no multiplexers assigned to it. The two subprograms used in this
example are Scan_100µsec and Scan_10µsec. Configuration for this
example is as follows:
Connect two cables as:
Multimeter’s "Ext Trig" to "Trig Out" on the E1406 or E1300/E1301.
Multimeter’s "VM Compl" to "Trig In" on the E1406 or E1300/E1301.
The two different subprograms are used to demonstrate a more effective
method of scanning (Scan_100µs) and a less effective method of scanning
(Scan_10µs). Comments follow the program and subprograms providing
information about the instruments execution.
Scan_100µs demonstrates the multimeter set for an aperture of 100µs and
achieves a scan rate of 123/sec in the E1300 B-size mainframe. Whereas,
Scan_10µs demonstrates the multimeter set for an aperture of 10 µs and
achieves a decrease in scanning speed.
10 !Define I/O paths.
20 !
30 ASSIGN @Sys TO 70900
40 ASSIGN @Dvm TO 70903
50 ASSIGN @Sw TO 70916
60 !
70 !
Setup for timeouts and errors.
80 !
90 ON TIMEOUT 7,5 GOTO End
100 ON ERROR RECOVER Kaboom
105 !
110 !
Supply your own application code for Main.
120 !
130 Main
140 PRINT "Checking for E13xx_errors at the end of the program"
150 E13xx_errors
160 !
170 !
Subprogram Kaboom.
180 !
190 Kaboom:PRINT ""
200 PRINT ERRM$
210 PRINT "Checking for E13xx Errors as a BASIC Error has occurred"
220 E13xx_errors
230 End:END
240 !
250 !
Subprogram to read all errors from E13xx instruments.
260 !
270 SUB E13xx_errors
280 .
.
.
300 SUBEND
Continued on Next Page
Chapter 3 Using the HP E1326B/E1411B Multimeter 71