Agilent Technologies 3458A User Manual page 336

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

...
1940 OUTPUT 722;"DCV,10;NPLC 0;DELAY 0;NRDGS 3;TRIG SGL
1950 Exe_time=TIMEDATE-Exe_time
1960 Dnld_time=0
1970 Tns_time=TIMEDATE
1980 FOR I=1 TO 37
1990 ENTER 722;A(I)
2000 NEXT I
2010 Tns_time=TlMEDATE-Tns_time
2020 SUBEND
A marked change is effected in the structure of the program. Now the readings
are stored in Reading Memory as the measurements are made. At the end of the
measurement sequence, the readings are transferred from Reading Memory to the
computer using a FOR NEXT loop. Except for the convenience of data transfer,
there is no marked improvement in the speed of the measurement in this case. If
the data were transferred via a TRANSFER statement to the computer, there would
be more time savings.
Using Program Memory: (Subprogram Program)
test execution time = 1.06 s
program memory download time = .260 s
reading transfer time = .17 s
2030 SUB Program(REAL Dnld_time,Exe_time,Tns_time)
2040 DIM A(37)
2050 Dnld_time=TlMEDATE
2060 OUTPUT 722;"PRESET;MFORMAT SREAL"
2070 OUTPUT 722;"SUB 1;MEM FIFO;OHM,lE4;NPLC 0;DELAY0;NRDGS 15;TRIG SGL"
2080 OUTPUT 722;"OHM,1E5;NRDGS 8:TRIG SGL"
2090 OUTPUT 722;"OHMF,1E3;APER 20E-6;DELAY-l;NRDGS 2;TRIG SGL
2100 OUTPUT 722;"ACV,250;ACBAND 250;DELAY.1;NRDGS 1;TRIG SGL"
2110 OUTPUT 722;"ACV 10;ACBAND 25000;DELAY .01;TRIG SGL
2120 OUTPUT 722;"DCV,10;NPLC 0;DELAY 0;NRDGS 6;TRIG SGL"
2130 OUTPUT 722:"ACV,10:ACBAND 5000;APER 20E-6;DELAY.01;NRDGS 1;TRIG SGL
2140 OUTPUT 722;"DCV,10;NPLC 0;DELAY 0;NRDGS 3;TRIG SGL;SUBEND"
2150 Dnld_time=TlMEDATE-Dnld_time
2160 Exe_time=TIMEDATE
2170 OUTPUT 722;"CALL 1"
2180 Exe_time=TIMEDATE-Exe_time
2190 Tns_time=TIMEDATE
2200 FOR I=1 TO 37 2210ENTER 722:A(I)
2220 NEXT I
2230 Tns_time=TIMEDATE-Tns_time
2240 SUBEND
...
Again, the structure of the program is changed. Now the sequence of
measurements with all of the variations imposed up to this point on each
measurement is placed in a dmm subprogram SUB 1. The commands are
transferred from the computer to the 3458A where they are compiled. Execution
of the commands commence when the dmm subprogram is called with the CALL
1 command. The readings are transferred when the dmm subprogram is complete.
Note that the program halted while the dmm is completing this sequence. If
continued program operation were wanted, the output statement to the dmm would
336
Appendix D Optimizing Throughout and Reading Rate

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents