EasyManuals Logo
Home>Agilent Technologies>Measuring Instruments>8720E Series

Agilent Technologies 8720E Series Programmer's Guide

Agilent Technologies 8720E Series
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #384 background imageLoading...
Page #384 background image
Chapter 7 7-21
Programming Examples
Measurement Setup Examples
Example 1B: Verifying Parameters
This example shows how to read analyzer settings into your controller. Appending a “?” to
a command that sets an analyzer parameter will return the value of that setting.
Parameters that are set as ON or OFF when queried will return a zero (0) if off or a one (1) if
active. Parameters are returned in ASCII format, FORM 4. This format varies in length
from 1 to 24 characters-per-value. In the case of marker or other multiple responses, the
values are separated by commas.
The following is an outline of the program's processing sequence:
An I/O path is assigned for the analyzer.
The system is initialized.
The number of points in the trace is queried and dumped to a printer.
The start frequency is queried and output to a printer.
The averaging is queried and output to a printer.
The analyzer is released from remote control and the program ends.
Running the Program
The analyzer is preset. The preset values are returned and printed out for: the number of
points, the start frequency, and the state of the averaging function. The analyzer is
released from remote control and the program ends.
BASIC Program Listing
10 ! This program performs some example queries of network analyzer
20 ! settings. The number of points in a trace, the start frequency
30 ! and if averaging is turned on, are determined and displayed.
40 !
50 ! EXAMP1B
60 !
70 ASSIGN @Nwa TO 716 ! Assign an I/O path for the analyzer
80 !
90 CLEAR SCREEN
100 ! Initialize the system
110 ABORT 7 ! Generate an IFC (Interface Clear)
120 CLEAR @Nwa ! SDC (Selected Device Clear)
130 OUTPUT @Nwa;"OPC?;PRES;" ! Preset the analyzer and wait
140 ENTER @Nwa;Reply ! Read in the 1 returned
150 !
160 ! Query network analyzer parameters
170 OUTPUT @Nwa;"POIN?;" ! Read in the default trace length
180 ENTER @Nwa;Num_points
190 PRINT "Number of points ";Num_points
200 PRINT
210 !
220 OUTPUT @Nwa;"STAR?;" ! Read in the start frequency
230 ENTER @Nwa;Start_f
240 PRINT "Start Frequency ";Start_f
250 PRINT
260 !
270 OUTPUT @Nwa;"AVERO?;" ! Averaging on?

Table of Contents

Other manuals for Agilent Technologies 8720E Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 8720E Series and is the answer not in the manual?

Agilent Technologies 8720E Series Specifications

General IconGeneral
BrandAgilent Technologies
Model8720E Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals