Benchmarks for the 3852 STAT Command
Benchmarks for the 3852 STAT Command
Yes. Following is a benchmark of the STAT command for the 3852A. Notice that the speed depends on the array size. The command returns the highest value, lowest value, mean, and standard deviation. The std dev is approximately equal to the RMS value. For a small number (n) of samples: rms=sdev*sqrt[(n-1)/n].10 ! RE-STORE "STAT_SPD"20 !21 ! Benchmark to determine the execution time of the STAT22 ! function.24 ! The time for 10000 rdgs: 5.6525 ! The time for 1000 rdgs: .56527 ! The time for 100 rdgs: .05728 ! The time for 10 rdgs: .00929 !31 ASSIGN @Dac TO 70940 CLEAR @Dac50 OUTPUT @Dac;"RESET"60 WAIT .570 !80 REAL Sts(3)90 OUTPUT @Dac;"REAL RDG(1000)"110 OUTPUT @Dac;"REAL ST(3),T1,T2,T3,T4"190 OUTPUT @Dac;"DISABLE LABELS; DISP OFF"200 OUTPUT @Dac;"SUB START"210 OUTPUT @Dac;"USE 600; SCANMODE ON; SCTRIG HOLD; TERM RIBBON"211 OUTPUT @Dac;"FUNC DCV; NRDGS 1000"220 OUTPUT @Dac;"RANGE 2.5; CLWRITE 500; ASCAN ON"230 OUTPUT @Dac;"SPER 0; SCDELAY 0,0; SCTRIG SYS"260 OUTPUT @Dac;" TRG SGL"270 OUTPUT @Dac;" XRDGS 600 1000 INTO RDG"281 OUTPUT @Dac;" TIME INTO T1"282 OUTPUT @Dac;" TIME INTO T2"290 OUTPUT @Dac;" STAT ST ST ST ST RDG"300 OUTPUT @Dac;" TIME INTO T3"310 OUTPUT @Dac;"SUBEND"330 OUTPUT @Dac;"CALL START"340 OUTPUT @Dac;"VREAD (T3-T2-(T2-T1))"350 ENTER @Dac;A360 PRINT "Time: ";A370 OUTPUT @Dac;"VREAD ST"380 ENTER @Dac;Sts(*)390 PRINT "Stats: ";Sts(*)450 END