EasyManua.ls Logo

Giga-tronics 8003 - Page 203

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...
Remote Operation
Manual 20791, Rev. C, June 2001 3-61
Trace Memory Programming Example
10 ! *************************************************************
20 ! PROGRAMMING EXAMPLE FOR TRACE MEMORY MANIPULATION
30 ! *************************************************************
40 !
50 OPTION BASE 1! All arrays start with index of 1
60 DIM Trace data(512)
70 !
80 ! First configure 8003 Analyzer
90 CLEAR 704 ! Device clear presets 8003
100 OUTPUT 704;SWP 1,A;on! Channel one displays sensor A power
110 OUTPUT 704;CHAN 2;off;CHAN 3;off;CHAN 4;off! turn off unused channels
120 !
130 ! Next configure the sweeper
140 OUTPUT 704;SWPF;start 8000;stop 12000;swpt 1000;level 0;level on
150 ! sweep from 8 GHz to 12 GHz, with 1 second sweep time, at 0 dBm
160 WAIT 5! Wait for sweeper to execute commands
170 !
180 ! Now scale analyzer for easy display
190 OUTPUT 704;SWP 1;scale .5;ref lev 0
200 !
210 ! =================================================================
220 ! Trace memory examples
230 !
240 ! First store channel 1 trace into trace memory 1
250 OUTPUT 704;SWP 1;store trc 1
260 !
270 ! Next subtract trace 1 from currently displayed trace (normalize)
280 OUTPUT 704;SWP 1;-trace 1
290 !
300 ! Display stored trace on channel 2
310 OUTPUT 704;SWP 2,A;on;trace 1
320 ! and scale channel 2
330 OUTPUT 704;SWP 2;scale .5;ref lev 0
340 WAIT 1! wait for analyzer to finish processing display
350 !
360 ! Now read trace into controller
370 OUTPUT 704;OUTPUT;trace 1
380 ENTER 704;Start freq,Stop freq,Trace data(*)
390 ! Note: output format is always start freq (MHz), stop freq (MHz), then
400 ! 512 data points of trace data in dB
410 !
420 ! Invert trace data as an example of user-manipulated trace data
430 MAT Trace data= (0)-Trace data
440 !
450 ! Now read trace back to different trace memory in analyzer
460 OUTPUT 704;INPUT;trace 2,Start freq,Stop freq,Trace data(*)
470 ! Note: input format follows above output format
480 !
490 ! And display user-manipulated trace on channel 3
500 OUTPUT 704;SWP 3,A;on;trace 2
510 ! and scale display
520 OUTPUT 704;SWP 3;scale .5;ref lev 0
530 !
540 ! To return channel 1 to measurement mode without trace memory
550 OUTPUT 704;SWP 1;meas
560 !
570 ! DEMONSTRATION OF OPEN/SHORT BRIDGE CALIBRATION USING TRACE MEMORIES
580 !
590 ! We will use SRQ interrupt to tell controller when calibration step
600 ! is done
610 Srq flag=0! Clear flag to indicate no SRQ received yet
620 ON INTR 7 GOSUB Trace srq
630 ENABLE INTR 7;2! Enable interrupts

Table of Contents

Related product manuals