Remote Operation
Manual 20791, Rev. C, June 2001 3-27
Examples
Simple example using an HP Series 300 Controller:
100 OUTPUT 704;KEYEM ON! enable keystroke emulation
110 !
120 WAIT 1! always wait before go to local command
130 LOCAL 7 ! send remote enable false
140 WAIT .01 ! always wait 10 ms after local command
150 OUTPUT 704;LDA! key stroke emulation for plotting
160 ! current display
170 REMOTE 704! exit key stroke emulation mode
180 !
190 OUTPUT 704;KEYEM OFF! disable keystroke emulation
More complex example using an HP Series 300 Controller (see Figure 3-2):
100 CLEAR 704 ! Instrument preset
110 OUTPUT 704;SWPF;start 2000;stop 4000;level 0;level
120 ! Sweep from 2 to 4 GHz at 0 dBm
130 OUTPUT 704;CH 2;off;CH 3;off;CH 4;OFF
140 OUTPUT 704;SWP 1;scale 1;rp 0;rl 0
150 ! Manually scale ch 1, turn other channels off
160 !
170 OUTPUT 704;KEYEM ON! Enable key stroke emulation
180 !
190 ! Local mode turns key stroke emulation on
200 WAIT 1! always wait before a local command
210 LOCAL 7 ! send remote enable false
220 WAIT .01 ! always wait 10 ms after local command
230 !
240 ! First, set up a limit line with 2 segments:
250 OUTPUT 704;LDBC2d4d-4d
260 ! First half sets up slope limit with 2 GHz start freq
270 ! and +/- 4 dB upper and lower limits
280 WAIT 1! wait 1 second to process key strokes
290 OUTPUT 704;3d3d-3d
300 ! Second half sets 3 GHz stop freq and +/-3 dB limits
310 WAIT .5! wait to process key strokes
320 OUTPUT 704;LDBB3d3d-3d4d
330 ! Now, set up flat limit from 3 to 4 GHz with
340 ! +/- 3 dB upper and lower limits
350 WAIT 1! wait to process key strokes
360 OUTPUT 704;LDA! Turn limit lines on
370 WAIT 1! wait to process key strokes
380 !
390 OUTPUT 704;LCA! plot the current display
400 !
410 ! Use go to remote feature to automatically wait
420 ! for the end of the plotting function
430 REMOTE 704! go to remote
440 OUTPUT 704;CH 1;ON! Dummy bus command is not
450 ! executed until analyzer finishes plotting
460 !
470 ! Now continue with other key stroke functions
480 WAIT 1
490 LOCAL 7 ! go to local sequence
500 WAIT .01
510 OUTPUT 704;LAEB! turn smoothing on