EasyManua.ls Logo

Giga-tronics 8003 - Page 186

Giga-tronics 8003
258 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8003 Precision Scalar Analyzer
3-44 Manual 20791, Rev. C, June 2001
650 ENTER 704;Reading! In free running mode, analyzer gives last readin
660 ! any time that it is talk-addressed.
670 Counter=Counter+1
680 END WHILE
690 Tottime=TIMEDATE-Starttime
700 OUTPUT 704;PWR 1;T0! Good housekeeping returns to display update mode
710 WAIT 1! Always wait after mode change
720 !
730 PRINT Free running mode msmts/second = ;Maxcount/Tottime,Power = ;Rea
740 !
750 !.............................................................
760 ! MEASUREMENT OF TRIGGERED FAST CW MODE MEASUREMENT SPEED
770 !
780 OUTPUT 704;PWR 1;T2! First set triggered fast cw mode = T2
790 WAIT 1! IMPORTANT** wait for analyzer to change modes and update
800 ! temperature correction
810 !
820 ! Initialize loop variables
830 Maxcount=1000! Take 1000 readings
840 Counter=0 ! Initialize counter
850 !
860 ! MAIN LOOP
870 Starttime=TIMEDATE
880 WHILE Counter<Maxcount
890 TRIGGER 704! Triggered mode requires Group Execute Trigger
900 ENTER 704;Reading
910 Counter=Counter+1
920 END WHILE
930 Tottime=TIMEDATE-Starttime
940 !
950 PRINT Triggered mode msmts/second = ;Maxcount/Tottime,Power = ;Readin
960 !
970 OUTPUT 704;PWR 1;T0! Good housekeeping to return analyzer to
980 ! standard cw mode to update display
990 WAIT 1
1000 !
1010 !.............................................................
1020 ! EXAMPLE OF 2 CHANNEL MEASUREMENT IN FAST-TRIGGERED MODE
1030 !
1040 OUTPUT 704;POWER 1,A;ON;POWER 2,A;ON;CHAN 3;OFF;CHAN 4;OFF
1050 ! Note that both channels are reading the same sensor A. This is just
1060 ! for convenience in running a demo. It is just as easy to define
1070 ! channel 2 to read sensor B. With 2 different sensors, the msmt speed
1080 ! is almost identical to the code running here.
1090 !
1100 OUTPUT 704;PWR 1;T2! First set triggered fast cw mode = T2
1110 WAIT 1! IMPORTANT** wait for analyzer to change modes and update
1120 ! temperature correction
1130 !
1140 ! Initialize loop variables
1150 Maxcount=1000! Take 1000 readings
1160 Counter=0 ! Initialize counter
1170 !
1180 ! MAIN LOOP
1190 Starttime=TIMEDATE
1200 WHILE Counter<Maxcount
1210 TRIGGER 704! Triggered mode requires Group Execute Trigger
1220 ENTER 704;Reading a,Reading b
1230 ! Now, analyzer returns 2 readings for every trigger
1240 Counter=Counter+1
1250 END WHILE
1260 Tottime=TIMEDATE-Starttime
1270 !
1280 PRINT Sensor A = ;Reading a;, Sensor B = ;Reading b
1290 PRINT 2-channel msmt speed = ;Maxcount/Tottime; rdgs/second

Table of Contents