
Using
the
User
Flatness
Correction
Commands,
Example
Program
8
The
following
program
in
terrogates
the
sw
ept
signal
generator
and
an
HP/Agilent
437B
p o
w
er
meter
for
frequency
and
p o
w
er
information
resp ectiv
ely
.
The
sw
ept
signal
generator
is
programmed
to
sw
eep
from
2
to
20
GHz,
with
frequency-correction
pairs
ev
ery
100
MHz
and
+5
dBm
lev
eled
output
p o
w
er.
F
or
this
example,
w
e
assume
that
the
path
losses
do
not
exceed
5
dBm
and
that
the
HP/Agilent
437B
p o
w
er
meter
already
has
its
p o
w
er
sensor's
calibration
factors
stored
in
sensor
data
table
0.
If
another
p o
w
er
meter
is
used,
the
p o
w
er
sensor's
calibration
factors
will
ha
v
e
to
b e
stored
in
a
lo
ok-up
table.
Mo
dify
the
program
to
suit
y
our
particular
measuremen
t
requiremen
ts.
Up
to
801
p oints
may
b e
en
tered
in
the
user
atness
correction
table
with
this
program.
SCPI
commands
are
used
to
set
up
the
source
parameters
and
en
ter
correction
frequencies
and
data
in
to
the
correction
table.
10
!ASSIGN
THE
ADDRESS
TO
THE
SOURCE
AND
POWER
METER
20
DIM
A$[5000],B$[5000]
30
ASSIGN
@Source
TO
719
40
ASSIGN
@Meter
TO
713
50
INTEGER
Error_flag
60
ABORT
7
70
!
80
!SET
UP
SOURCE
90
OUTPUT
@Source;"*RST"
100
OUTPUT
@Source;"FREQ:MODE
SWE;STAR
2
GHZ;STOP
20
GHZ"
110
OUTPUT
@Source;"SWEEP:TIME
200
MS"
120
OUTPUT
@Source;"POW:LEV
5
DBM;:INIT:CONT
ON"
130
OUTPUT
@Source;"*OPC?"
140
ENTER
@Source;Done
150
!
160
!SET
UP
POWER
METER
170
OUTPUT
@Meter;"PR"
180
OUTPUT
@Meter;"FA"
190
OUTPUT
@Meter;"TR0"
200
!
210
!ZERO
POWER
METER
220
OUTPUT
@Source;"POW:STAT
OFF"
230
Zero_meter(@Meter,@Source,Error_flag)
240
IF
Error_flag
THEN
250
BEEP
260
CLEAR
SCREEN
270
"ERROR:METER
DID
NOT
COMPLETE
ZEROING
OPERATION!"
280
ELSE
290
!
300
!SET
UP
CORRECTION
FREQUENCIES
IN
USER
FLATNESS
CORRECTION
TABLE
310
!OUTPUT
@Source;"CORR:FLAT
";
320
Start_freq=2
330
Stop_freq=20
340
Increment=1
350
N=(((Stop_freq-Start_freq)/Inc1)
Getting
Started
Programming
1-103
Содержание 8360B
Страница 10: ...Declaration of Conformity x ...
Страница 53: ...Figure 1 12 Typical Diode Detector Response at 25 C Getting Started Advanced 1 25 ...
Страница 136: ...Figure 1 34 Typical Status Register Bit Changes 1 108 Getting Started Programming ...
Страница 141: ...Figure 1 38 Inside an Event Detection State Getting Started Programming 1 113 ...
Страница 154: ...4ALC5 Figure A 1 ALC System Simplified Block Diagram Operating and Programming Reference A 5 ...
Страница 363: ...SCPI STATUS REGISTER STRUCTURE S 56 Operating and Programming Reference ...
Страница 364: ...SCPI STATUS REGISTER STRUCTURE Operating and Programming Reference S 57 ...
Страница 406: ...2b Menu Maps Menu Maps 2b 1 ...
Страница 407: ......
Страница 408: ......
Страница 409: ......
Страница 410: ......
Страница 411: ......
Страница 412: ......
Страница 413: ......
Страница 414: ......
Страница 415: ......
Страница 438: ...Figure 3 1 AC Power Cables Available Installation 3 5 ...
Страница 469: ...5 Instrument History This chapter is left blank until this manual requires changes Instrument History 5 1 ...