EasyManua.ls Logo

HP 8360 - Looping and Synchronization, Example Program; Program Comments

HP 8360
508 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...
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
Source=719
ABORT 7
LOCAL 7
CLEAR Source
REMOTE Source
CLS
OUTPUT
Source;"*RST"
OUTPUT Source;
"FREQ:START
4 GHZ; STOP 5 GHZ; MODE SWEEP"
OUTPUT Source;"POWER:LEVEL -1 DBM; STATE ON"
OUTPUT Source;"SWEEP:TIME I"
OUTPUT
Source;"*OPC?"
ENTER Source;X
REPEAT
DISP "Enter number of sweeps to take :
CO to exit]";
INPUT N
IF
N>O
THEN
FOR
I=1
TO N
DISP "Taking sweep number : ";I
OUTPUT
Source;"INIT:IMM;*OPC?"
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

Table of Contents