
Queries,
Example
Program
4
The
following
example
demonstrates
the
use
of
query
commands
and
resp onse
data
formats.
Clear
and
reset
the
con
troller
and
t
yp e
in
the
follo wing
program:
10
Source=719
20
ABORT
7
30
LOCAL
7
40
CLEAR
Source
50
REMOTE
Source
60
CLS
70
OUTPUT
Source;"*RST"
80
OUTPUT
Source;"POWER:LEVEL
-5
dBm;STATE
ON"
90
OUTPUT
Source;"FREQ:CW?"
100
ENTER
Source;F
110
"Present
source
CW
frequency
is
:
";F/1.E+6;"MHz"
120
OUTPUT
Source;"POWER:STATE?"
130
ENTER
Source;W
140
"Present
power
ON/OFF
state
is
:
";W
150
OUTPUT
Source;"FREQ:MODE?"
160
DIM
A$[10]
170
ENTER
Source;A$
180
"Source's
frequency
mode
is
:
"&A$
190
OUTPUT
Source;"FREQ:CW?
MIN"
200
ENTER
Source;A
210
"Minimum
source
CW
frequency
is
:
";A/1.E+6;"MHz"
220
OUTPUT
Source;"FREQ:START?;STOP?"
230
ENTER
Source;X,Y
240
"Swept
frequency
limits
:"
250
"
Start
";X/1.E+6;"MHz"
260
"
Stop
";Y/1.E+6;"MHz"
270
END
Run
the
program.
Program
Comments
10:
Assign
the
source's
GPIB
address
to
a
v
ariable.
20
to
50:
Ab ort
an
y
GPIB
activit y
and
initialize
the
GPIB
in
terface.
60:
Clear
the
computer's
display
.
70:
Set
the
source
to
its
initial
state
for
programming.
80:
Set
up
the
source
p o
w
er
lev
el
using
a
comp ound
message.
90:
Query
the
v
alue
of
the
source's
CW
frequency
.
100:
En
ter
the
query
resp onse
in
to
the
v
ariable
'F'.
The
resp onse
alwa
ys
is
returned
in
fundamen
tal
units,
Hz
in
the
case
of
frequency
.
110:
the
CW
F
requency
in
MHz
on
the
computer
display
.
120:
Query
the
v
alue
of
a
Bo olean
function,
PO
WER:ST
A
TE.
Getting
Started
Programming
1-95
Содержание 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 ...