HP (Hewlett-Packard) 22A Manuale Utente

Pagina di 508
160: Recall the instrument state from register 1. It should contain
the sweeping state.
170 to 190: Print a message on the computer display and pause.
200: Recall the instrument state from register 2. It should contain
the CW state.
210 and 220: Print messages on the computer display.
Looping and
Clear and reset the controller and type in the following program:
Synchronization,
Example Program 6
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
ABORT 7
LOCAL 7
CLEAR Source
REMOTE Source
OUTPUT 
OUTPUT Source;
 4 GHZ; STOP 5 GHZ; MODE SWEEP"
OUTPUT 
 -1 DBM; STATE ON"
OUTPUT 
 I"
OUTPUT 
ENTER Source;X
REPEAT
DISP "Enter number of sweeps to take :
CO to exit]";
INPUT N
IF 
 THEN
FOR 
 TO N
DISP "Taking sweep number : ";I
OUTPUT 
ENTER \
NEXT I
END IF
UNTIL N=O
END
Run the program.
Program Comments
10: Assign the source’s HP-IB address to a variable.
20 to 50: Abort any HP-IB activity and initialize the HP-IB
interface.
60: Clear the computer’s display.
70: Set the source to its initial state for programming.
80: Setup the frequency parameters using a compound message.
90: Setup the source’s power level and state using a compound
message.
Getting Started Programming 1-95