Looping And Synchronization, Example Program; Program Comments - HP 8360 User Handbook Manual

8360 series synthesized sweepers
Table of Contents

Advertisement

Looping and
Synchronization,
Example Program 6
20
30
40
50
60
70
80
90
200
210
220
230
240
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.
Clear and reset the controller and type in the following program:
10
ABORT 7
LOCAL 7
CLEAR Source
REMOTE Source
OUTPUT Source;"*RST"
OUTPUT Source; "FREQ:START 4 GHZ; STOP 5 GHZ; MODE SWEEP"
OUTPUT Source;"POWER:LEVEL -1 DBM; STATE ON"
100
OUTPUT Source;"SWEEP:TIME I"
110
OUTPUT Source;"*OPC?"
120
ENTER Source;X
130
REPEAT
140
DISP "Enter number of sweeps to take :
150
INPUT N
160
IF N>O THEN
FOR I=1 TO N
170
DISP "Taking sweep number : ";I
180
OUTPUT Source;"INIT:IMM;*OPC?"
190
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.
CO to exit]";
Getting Started Programming 1-95

Advertisement

Table of Contents
loading

This manual is also suitable for:

83620a83622a83624a83623a83630a83640a ... Show all

Table of Contents