Queries, Example Program 4; Program Comments - HP 83751A Programming Manual

Synthesized sweeper
Hide thumbs Also See for 83751A:
Table of Contents

Advertisement

Getting Started Programming
Programming Typical Measurements

Queries, Example Program 4

The following example demonstrates the use of query commands and
response data formats. Clear and reset the controller and type in the
following program:
20
30
40
50
60
70
80
90
100
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
Run the program.

Program Comments

10:
I O
ABORT 7
LOCAL 7
CLEAR Source
REMOTE Source
OUTPUT Source ; "*RST"
OUTPUT Source; "POWER:LEVEL -5 dBm; STATE ON"
OUTPUT Source; "FREQ :
ENTER Source;F
PRINT "Present source CW frequency is : ";F/I.E+6;"MHz"
OTJTPUT Source;"POWER:STATE?"
ENTER
PRINT "Present power ON/OFF state is : ";W
OUTPUT Source;"FREQ:MODE?"
DIM A$[101
ENTER Source ; A$
PRINT "Source's frequency mode is : "&A$
OUTPUT Source;"FREQ:CW? MIN"
ENTER Source;A
PRINT "Minimum source CW frequency is : ";A/I.E+6;"MHz"
OUTPUT Source;*'FREQ:START?;STOP?"
ENTER Source;X,Y
PRINT "Swept frequency limits :"
PRINT " Start ";X/I.E+6;"MHz"
PRINT " Stop ";Y/I.E+6;"MHz"
END
Assign the source's HP-lB address to a variable.
Abort any HP-IB activity and initialize the HP-IB interface.

Advertisement

Table of Contents
loading

This manual is also suitable for:

83751b83752a83752b

Table of Contents