
32
S:\agilent\e8285\USRGUIDE\BOOK\CHAPTERS\getstart.fb
Chapter 1, Getting Started
Obtaining Measurement Results
To Make a Simple Measurement
1. Access the screen containing the desired measurement by using the DISP command.
2. Use the MEAS form of the syntax for that measurement to place the measured value
into the Test Set’s output buffer.
3. Enter the value into the correct variable type within the program’s context (refer to the
“Number Measurement Syntax” in GPIB Command Syntax chapter of the
Agilent E8285A Condensed Programming Reference Guide for the proper variable
type).
NOTE:
Whenever a numeric value is queried, the returned value is always in GPIB Units. Refer to
"To Specify Units-of-Measure for GPIB Data Transfer" on page 56
.
The following example program illustrates how to make settings and then take a
reading from the Test Set. This setup takes a reading from the analog spectrum
analyzer’s marker after tuning it to the RF generator output frequency.
10
Addr=714
20
OUTPUT Addr;”*RST”! Preset to known state
25
OUPTUT Addr;”CONF:OFR 0” !Set the RF frequency offset to 0
MHz.
30
OUTPUT Addr;”TRIG:MODE:RETR SING”! Sets single trigger
40
OUTPUT Addr;”DISP RFG”! Selects the RF GENERATOR screen
50
OUTPUT Addr;”AFG1:FM:STAT OFF”! Turns FM OFF
60
OUTPUT Addr;”RFG:AMPL -66 DBM”! Sets RF Gen amplitude to -66
dBm
70
OUTPUT Addr;”RFG:FREQ 500 MHZ”! Sets RF Gen frequency to 500
MHz
80
OUTPUT Addr;”RFG:AMPL:STAT ON”! Turns RF Gen output ON
90
OUTPUT Addr;”DISP SAN”! Selects SPECTRUM ANALYZER screen
100
OUTPUT Addr;”SAN:CRF 500 MHZ”! Center Frequency 500 MHz
110
! -------------------MEASUREMENT SEQUENCE-------------------
-
120
OUTPUT Addr;”TRIG”! Triggers reading
130
OUTPUT Addr;”MEAS:SAN:MARK:LEV?”! Query of Spec Anl marker
level
140
ENTER Addr;Lvl! Places measured value in variable Lvl
150
DISP Lvl! Displays value of Lvl
160
END
The above example is very simple and is designed to demonstrate the fundamental
procedure for obtaining a measurement result. Many other factors must be
considered when designing a measurement procedure, such as instrument settings,
signal routing, settling time, filtering, triggering and measurement speed.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com