Remote Operation
Manual 20791, Rev. C, June 2001
3-45
1300 !
1310 OUTPUT 704;PWR 1;T0! Good housekeeping to return analyzer to
1320 ! standard cw mode to update display
1330 WAIT 1
1340 !.............................................................
1350 ! EXAMPLE OF BUFFERED MEASUREMENTS IN FAST-TRIGGERED MODE
1360 !
1370 OUTPUT 704;POWER 1,A;ON;POWER 2,A;ON;CHAN 3;OFF;CHAN 4;OFF
1380 ! Read from 2 channels in this example
1390 !
1400 ! ***** THE ITEMS n COMMAND SETS THE BUFFER SIZE *****
1410 OUTPUT 704;PWR 1;T2;ITEMS 100! Triggered fast cw mode = T2
1420 ! Also, buffer of 100 elements set for each active channel
1430 WAIT 1! IMPORTANT** wait for analyzer to change modes and update
1440 ! temperature correction
1450 !
1460 DIM Buffer a(100), Buffer b(100)
1470 ! MAIN LOOP
1480 FOR Reading=1 TO 100
1490 TRIGGER 704! Triggered mode requires Group Execute Trigger
1500 ! Analyzer automatically buffers one reading per channel for
1510 !
each trigger
1520
WAIT .005! Important to not send new trigger before analyzer is
1530 ! ready to accept it. See T1 mode description
1540 NEXT Reading
1550 !
1560 ! Now read buffers from the analyzer
1570 OUTPUT 704;OUTPUT 1! Tell analyzer to send buffers
1580 ENTER 704;Buffer a(*),Buffer b(*)
1590 !
1600 ! Print buffers
1610 FOR I=1 TO 100
1620
PRINT I; Chan A = ;Buffer a(I); Chan B = ;Buffer b(I)
1630 NEXT I
1640 !
1650 OUTPUT 704;PWR 1;T0! Good housekeeping to return analyzer to
1660 ! standard cw mode to update display
1670 !
1680 !.............................................................
1690 ! EXAMPLE OF BUFFERED MODE WITH FULL GPIB HANDSHAKE
1700 !
1710 OUTPUT 704;POWER 1,A;ON;CH 2;OFF;CH 3;OFF;CH 4;OFF
1720 ! Use only channel 1 for this example
1730 !
1740 ! *** THE SRQ MODIFIER TELLS ANALYZER TO ASSERT SRQ AFTER EVERY READING
1750 ! Use GPIB triggered mode with 100 element buffer
1760 OUTPUT 704;POWER 1;T2;ITEMS 100;SRQ
1770 WAIT 1! IMPORTANT** wait for analyzer to change modes and update
1780 ! temperature correction
1790 !
1800 ! SET UP INTERRUPT SERVICE ROUTINE TO HANDLE SRQ
1810 Srq flag=0! Reset interrupt service routine flag
1820 ON INTR 7 GOSUB Reading srq
1830 ENABLE INTR 7;2
1840 !
1850 ! MAIN LOOP
1860 FOR Reading=1 TO 100
1870 TRIGGER 704! Triggered mode requires Group Execute Trigger
1880 ! Analyzer automatically buffers one reading per channel for
1890 !
each trigger
1900 WHILE Srq flag=0! Infinite loop waits for reading SRQ
1910 END WHILE
1920 NEXT Reading
1930 !
Содержание 8003
Страница 3: ......
Страница 14: ...8003 Precision Scalar Analyzer x Manual 20791 Rev C June 2001 ...
Страница 16: ...8003 Precision Scalar Analyzer xii Manual 20791 Rev C June 2001 ...
Страница 18: ...8003 Precision Scalar Analyzer xiv Manual 20791 Rev C June 2001 ...
Страница 20: ...8003 Precision Scalar Analyzer xvi Manual 20791 Rev C June 2001 ...
Страница 36: ...8003 Precision Scalar Analyzer 1 16 Manual 20791 Rev C June 2001 ...
Страница 38: ...8003 Precision Scalar Analyzer 2 2 Manual 20791 Rev C June 2001 Figure 2 1 8003 Front Rear Panel Components ...
Страница 142: ...8003 Precision Scalar Analyzer 2 106 Manual 20791 Rev C June 2001 ...
Страница 232: ...8003 Precision Scalar Analyzer 4 18 Manual 20791 Rev C June 2001 ...
Страница 252: ...8003 Precision Scalar Analyzer B 16 Manual 20791 Rev C June 2001 ...
Страница 258: ...8003 Precision Scalar Analyzers Index 6 Manual 20791 Rev C June 2001 ...