344 Appendix D Optimizing Throughout and Reading Rate
70 SUB Test_58(Time58)
80 DIM A(20),B(90),C(30),D(30),J$[80]
90 !SET UP SCANNER
100 ASSIGN @Scan TO 709
110 ASSIGN @Dmm TO 722
120 CLEAR @Dmm
130 OUTPUT @Dmm;"RESET" !Sets the dmm to power-up state
140 OUTPUT @Dmm;"TRIG HOLD" ! Stops triggering
150 !
160 ! -------- ScannerSetup --------
170 !
180 OUTPUT @Scan;"RESET"
190 OUTPUT @Scan;"CLOSE 200,400,410;STORE 1"
200 OUTPUT @Scan;"CLOSE 308,309;STORE 2"
210 OUTPUT @Scan;"OPEN 200"
220 OUTPUT @Scan;"CLOSE 201; STORE 3"
230 OUTPUT @Scan;"OPEN 201"
240 OUTPUT @Scan;"CLOSE 206;STORE 4"
250 OUTPUT @Scan;"OPEN 206"
260 OUTPUT @Scan;"CLOSE 202;STORE 5"
270 OUTPUT @Scan;"OPEN 202"
280 OUTPUT @Scan:"CLOSE 205;STORE 6"
290 OUTPUT @Scan;"OPEN 205"
300 OUTPUT @Scan;"CLOSE 204;STORE 7"
310 OUTPUT @Scan;"OPEN 204"
320 OUTPUT @Scan;"CLOSE 203;STORE 8"
330 !
340 ! -------- Channel list --------
350 !
360 OUTPUT @Scan;"SLIST 1,2,3,3,4,4,5,5,6,6,7,8.8,0"
370 ! Setup the scan list for the states
380 ! that are automatically incremented
390 ! by the STEP command or the external
400 ! increment input signal
410 OUTPUT @Scan;"DMODE 1,1,0,1"! Setup for external increment
420 ! and channel close on the scanner.
430 !
440 ! -------- Measurement Setup --------
450 !
460 OUTPUT @Dmm;"PRESET;TARM HOLD"!Sets the dmm in its normal PRESET
461 ! and holds the trigger arm
462 OUTPUT @Dmm:"MFORMAT DREAL"! Stores the data in memory in IEEE
463 ! double-real format
470 OUTPUT @Dmm;"TRIG EXT"!Sets the dmm to trigger externally
480 OUTPUT @Dmm;"APER 20E-6"!Sets the integrator aperture to 20 µs
490 OUTPUT @Dmm;"TBUFF ON"! Sets-up the trigger buffer
500 ! does not occur
510 OUTPUT @Dmm;"DISP OFF ! Turns off the front panel display on the
dmm
520 OUTPUT @DMM;”DELAY 0”! Sets the time between trigger event
530 ! and measurement start to 0 s
540 !
550 ! --------- Measurement List -------------
560 !
570 OUTPUT @Dmm;"SUB 1"! Start of the dmm program
580 OUTPUT @Dmm;"MEM FIFO"! Sets memory to first-in, first-out
590 OUTPUT @Dmm;"DCV 10" ! Sets the dmm to dcV function and 10 volts
max
600 OUTPUT @Dmm;"TARM SGL"! (1) Initiates the measurement sequence once
the
610 ! TRIG EXT is satisfied and stops after just
620 ! one trigger event occurs.
630 OUTPUT @Dmm;"TARM SGL"!(2) Repeats the sequence again.
640 OUTPUT @Dmm;"TARM SGL"!(3) And again
650 OUTPUT @Dmm;"ACBAND 1000" ! Sets the lower frequency range to 1 kHz