Queries, Example Program 4; Program Comments - HP 8360 User Handbook Manual

8360 series synthesized sweepers
Table of Contents

Advertisement

Queries, Example
Program 4
1-92 Getting Started Programming
160: The source has now completed processing the commands.
The RF frequency, power, and markers are at their programmed
values. Turn on the RF output of the source.
170: Select a continuously initiated sweep instead of the default
mode of non-continuous that was selected with "RST.
180: Clear the computer's display.
190 to 220: Print a message on the computer's display.
The following example demonstrates the use of query commands and
response data formats. Clear and reset the controller and type in the
following program:
10
20
ABORT 7
30
LOCAL 7
CLEAR Source
40
50
REMOTE Source
60
70
OUTPUT Source;"*RST"
80
OUTPUT Source;"POWER:LEVEL -5 dBm;STATE ON"
90
OUTPUT Source;"FREQ:CW?"
100
ENTER Spurce;F
PRINT "Present source CW frequency is : ";F/l.E+6;"MHz"
110
OUTPUT Source;"POWER:STATE?"
120
130
ENTER Source;W
140
PRINT "Present power ON/OFF state is : ";W
150
OUTPUT Source;"FREQ:MODE?"
160
DIM A$[101
170
ENTER Source;A$
180
PRINT "Source's frequency mode is : "&A$
190
OUTPUT Source;"FREq:CW? MIN"
ENTER Source;A
200
PRINT "Minimum source CW frequency is : ";A/l.E+G;"MHz"
210
220
OUTPUT Source;"FREQ:START?;STOP?"
230
ENTER Source;X,Y
PRINT "Swept frequency limits :"
240
P R I N T " S t a r t ";X/l.E+6;"MHz"
250
PRINT ' Stop ";Y/l.E+6;"MHz"
260
270
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

83620a83622a83624a83623a83630a83640a ... Show all

Table of Contents