We’ve added this manual to the Agilent website in an effort to help you support
your product. This manual is the best copy we could find; it may be incomplete
or contain dated information. If we find a more recent copy in the future, we will
add it to the Agilent website.
Support for Your Product
Agilent no longer sells or supports this product. Our service centers may be able
to perform calibration if no repair parts are needed, but no other support from
Agilent is available. You will find any other available product information on the
Agilent Test & Measurement website,
www.tm.agilent.com.
HP References in this Manual
This manual may contain references to HP or Hewlett-Packard. Please note that
Hewlett-Packard's former test and measurement, semiconductor products and
chemical analysis businesses are now part of Agilent Technologies. We have
made no changes to this manual copy. In other documentation, to reduce
potential confusion, the only change to product numbers and names has been in
the company name prefix: where a product number/name was HP XXXX the
current name/number is now Agilent XXXX. For example, model number
HP8648A is now model number Agilent 8648A.
Option
lF7
User’s Guide Supplement
HP
871lC/12C/13C/14C/3OA
LAN Interface
HP part number: 08712-90062
Printed in USA
August 1998Supersedes October 1997
Notice
Key Conventions
Firmware Revision
The information contained in this document is subject to change without
notice. Hewlett-Packard makes no warranty of any kind with regard
to this material, including but not limited to, the implied warranties of
merchantability and fitness for a particular purpose. Hewlett-Packard shah
not be liable for errors contained herein or for incidental or consequential
damages in connection with the furnishing, performance, or use of this
material.
This manual uses the following conventions:
[Front-Panel
K~YJ
This represents a key physically located on the instrument
(a “hardkey”).
This indicates a “softkey, ’ a key whose label is determined
by the instrument’s Wnware, and is displayed on the right
side of the instrument’s screen next to the eight unlabeled
keys.
This manual documents analyzers with firmware revisions
C.04.52
and
above. Some features will not be available or will require different keystrokes
in analyzers with earlier hrmware revisions. For full compatibility, you
can upgrade your firmware to the latest version. Contact your nearest
Hewlett-Packard sales or service office for information.
@Copyright 1996, 1997, 1998 Hewlett-Packard Company
Acknowledgments
Portions of the
GIF output routines are by John Silva (derived from Jef Poskanzer’s
package).
JavaTM
Lotus@
Corporation.
Microsoft@ is a U.S. registered trademark of Microsoft Corp.
MS@ and MS-DOS@ are U.S. registered trademarks of Microsoft Corporation.
MS Windows@, Windows@, Windows
registered trademarks of Microsoft Corporation.
Netscape
Corporation.
Pentium@
PostscriptrM
registered in certain jurisdictions.
ReflectionTM
UNIX@ is a registered trademark in the United States and other countries,
licensed exclusively through X/Open Company Limited.
is a U.S. trademark of Sun Microsystems, Inc.
l-2-3@
is a U.S. registered trademark of
TCP/IP
are U.S. registered trademarks of Lotus Development
is a U.S. registered trademark of Intel Corporation.
is a trademark of Adobe Systems Incorporated which may be
is a U.S. trademark of Walker, Richer & Quinn, Inc.
software are copyright Phil
95@,
and Windows NT@ are U.S.
Netscape
Karn, KASQ.
PBMplus
Communications
Introducing the LAN Interface
The Option lF7 LAN Interface lets you connect your analyzer to an Ethernet
network that uses
l
Save and recall the analyzer’s settings (instrument state).
l
Transfer
l
Transfer
0
Connect many analyzers to one computer.
l
Automate the control of your analyzers.
l
Program the analyzer using SCPI commands.
l
Print hardcopy directly to an HP LaserJet printer.
l
Access your analyzer’s Web pages. Here you’ll find links to:
BASIC
hles
TCP/IP.
With the LAN interface you can:
programs between your computer and your analyzer.
between your computer and analyzer using FTP.
Expert Assistance
o general information about the HP
87xx
family of analyzers
o online documentation such as SCPI command references
o specific information about your analyzer such as your current firmware
revision, installed options, even the analyzer’s current screen image.
o general information about Hewlett-Packard, and how to obtain
assistance if you need it.
Most sites will hire a network administrator to install the LAN hardware and
manage the assignment of IP addresses.
NOTE
Hewlett-Packard offers professional consulting services to help increase your computer and
manufacturing productivity. HP system engineers will work with your factory management, engineering,
and production groups to evaluate various automation solutions. For more information contact the
nearest HP sales office. Refer to Chapter 7 for a table of Hewlett-Packard sales and service offices.
iv
Documentation Outline
This
User’s Guide Supplement
troubleshoot the LAN interface on your analyzer. This supplement contains
the following chapters:
1.
Connactinfl md
2. Accrssinl the Analyzefs Web
3. Printing
4. Accessing the
6.
Accessing the
6.
Controlling the Analyzer via the LAN
7. General Troubleshooting
Glossary
Configuring the Analyzer
Paues
Analyzefs
Anelyzefs
File System
Dynamic Data Disk
describes how to connect, use and
Provides information about connecting the analyzer to the network.
To effectively use this chapter, you should be familiar with your
network setup and operation.
Describes how to use a Web browser to access built-in Web pages.
Describes how to configure-and dump a hardcopy to-a network
printer.
Describes how to access the analyzer’s file system using file transfer
protocol
IFTPI.
The directory structure of the analyzer is described
here.
Describes the analyzer’s “data’ directory, the dynamic data disk.
Includes an example program.
Shows you methods for programming the analyzer via the network
connection.
Describes what to do if you have a problem using the analyzer on
your network.
Definitions for networking and other terms used in this book.
V
Contents
1.
Connecting and Configuring the Analyzer
Connecting the Analyzer to the LAN.........
Setting Up a Network
Point-to-Point Connections
Configuring the Analyzer ...............
The Analyzer’s IP Address and
The Gateway Address
The
The Ethernet Address
To Configure the Analyzer
Verifying Connectivity
Running Ping under Windows 95
Running Ping under UNIX
2.
Accessing the Analyzer’s Web Pages
Accessing the Analyzer with your Web Browser .....
Screen Snapshot
Analyzer Configuration
Product Documentation
Product Overview
Other Links
Subnet
................
.............
Hostname
...............
Mask
.................
...............
.............
................
..........
.............
..................
...............
..............
.................
...................
......
l-3
l-4
l-5
l-6
l-6
l-7
l-7
1-8
l-9
l-10
l-10
l-11
2-3
2-4
2-4
2-5
2-6
2-6
3. Printing
Configuring the Printer...............
Configuring the Analyzer for Printing to a LAN Printer
If You Have Trouble Printing .............
4.
Accessing the Analyzer’s File System
Using FTP to Access the Analyzer..........
Example 1: Copy a File to the Analyzer
Example 2: Retrieve a File from the Analyzer
Commonly Used FTP Commands ...........
Using GUI FTP Software ...............
Example: Transferring Files between the Analyzer and
your PC.
...................
.......
.....
3-3
3-4
.
3-6
4-3
4-5
4-7
4-8
4-10
4-10
Contents- 1
5.
Accessing the Analyzer’s Dynamic Data Disk
Saving and Recalling Analyzer States
Copying Programs to and from the Analyzer
To Copy an IBASIC Program to or from the Analyzer .
To Copy and Run a Program with One Command
Copying a Screen Image to a Local File
Copying Instrument Parameters in ASCII Text Format . .
Retrieving Measurement Data in ASCII Format
Importing Graphics or Data into PC Applications
Import a Screen Snapshot into a Word Processor
Program
Import Trace Data into a Spreadsheet Program
6.
Controlling the Analyzer via the LAN
The Command Parser Port
Entering Commands Directly using Telnet
Programming the Analyzer within a C Program
IBASIC
Controlling Multiple Analyzers using a
Controlling the Analyzer using HP VEE
Controlling the Analyzer with a
Controlling the Analyzer using HP BASIC
Communication Across the LAN
...................
..............
JavaTM
.........
.......
........
......
........
Per1
Script
........
Applet
.......
7. General Troubleshooting
Troubleshooting the Initial Connection
Assess the Problem
Ping the Analyzer from your Computer or Workstation
Ping your Computer or Other Device from your Analyzer
It is possible to connect a single computer to a single analyzer, and avoid
using a LAN hub. lb do this, you must use a special “cross-over” cable or
adapter, which acts like a LAN hub. If you try to create a point-to-point
connection using a standard “straight through” cable, it will not work. For
most applications, use of a LAN hub is simpler, and provides expandability.
NOTE
Point-to-point connections may not work when connecting to older laser printers. Older printers
typically require a boot server for network use. To use a point-to-point connection with a printer, use
an HP LaserJet 4 or newer.
l-5
Configuring the Analyzer
Before you configure your analyzer, you will need to contact your network
administrator to obtain an IP address for your analyzer. You will also want to
ask your network administrator about a unique hostname for your analyzer, a
gateway IP address, and a subnet mask.
CAUTION
TheAnalyzer’sIP
Each device on your network must have a unique address so that all
devices can communicate simultaneously over the same network. These
unique addresses are called IP addresses, and are assigned by your network
administrator. IP addresses are a set of 4 decimal numbers, separated by
periods.
For example: 192.170.128.21
You may also receive (or request) from your network administrator a
hostname for your analyzer.
For example:
The hostname is not required, but can be used on your computer so that you
don’t have to remember the IP address. Typically, the hostname is found in
the hosts file on your computer or returned by a name server.
Your network administrator will apply for a range of IP addresses from the
Internet Network Information Center (InterNIC). InterNIC is responsible
for registering domain names and assigning
to networks that connect to the Internet. You may contact InterNIC via
e-mail at hostmaster@internic.net, or by accessing their Web site at
http://rs.internic.net/.
It is important that no two devices are assigned the same IP address, or else
conflicts will occur.
my87
11
Address and
Hostname
TCPLP
network numbers
l-6
Connecting and Configuring the Analyzer
Configuring the Analyzer
The
Gateway
Address
If your analyzer will be communicating with devices on different physical
networks, you may need to have your network administrator assign a
gateway IP address for you. The gateway IP address is the address of a
routing device that connects your analyzer’s LAN with other
NOTE
See
“Subnets
and Gateways” in Chapter 7 for more information on gateway addresses.
LANs.
TheSubnet
Mask
If your analyzer will be communicating with devices on different physical
networks, you may need to have your network administrator assign a subnet
mask number for you. The subnet mask tells your analyzer whether a remote
device is on the same LAN as your analyzer. If your analyzer is attempting
to communicate with another device, the subnet mask defines whether your
analyzer needs to route communications through the gateway.
NOTE
See
“Subnets
and Gateways” in Chapter 7 for more information on
subnet
masks.
l-7
Connecting and Configuring the Analyzer
Configuring the Analyzer
The
Ethernet Address
Your analyzer has a unique built-in Ethernet address associated with the
LAN hardware inside the analyzer. The Ethernet address is a
assigned at the factory. The Ethernet address cannot be changed, and you
should not have to be concerned about it. In this document, the term “LAN
address” refers to the IP address.
4%bit
number
1-8
Connecting and Configuring the Analyzer
Configuring the Analyzer
To Configure the
1.
Press
NOTE
After each of the following steps, the analyzer will prompt you to cycle power for the new setting to
take effect. It is not necessary to cycle the power after each step. It only needs to be done
when you are finished entering all of the settings.
2. Set the
CSYSTEM
LAf Stata
OPTIONS) LAM to access the LAN menu.
Analyzer
once-
setting to ON if it isn’t already. If you do not wish to
use your analyzer’s LAN, you can turn this to OFF. When OFF, networking
is disabled, and more memory is available to
IBASIC
and the volatile RAM
disk.
3. Press
LAW Pur% Set;q WXXX EP
&d&es8 , and enter the IP address
that your network administrator assigned to your analyzer. You may
have also received a hostname (for example:
the
hostname
into your analyzer, just the IP address. The
my8711).
You cannot enter
hostname
can
be used on your computer, so that you don’t have to remember the IP
address.
4. Press
Gatasua;p IP Ad&ess
, and enter the numbers assigned to you
by your network administrator. If you were not assigned a gateway IP
address, leave the setting at 0.0.0.0 (default value) to disable gateway
routing.
5.
Press Subn&
#ask
, and enter the numbers assigned to you by your
network administrator. If you were not assigned a subnet mask, leave the
setting at 0.0.0.0 (default value) to disable subnet masking.
6. Once you have entered these settings, cycle the power on your analyzer,
so that it can re-initialize its LAN interface with these new values.
l-9
Verifying Connectivity
You should now verify connectivity between your computer and your
analyzer.
The ping utility is typically used to test connectivity.
RunningPing
under Windows 95
At the command prompt of a DOS window, type:
ping
<IPaddress>
or
ping
<hostname>
where
steps above, and <hostname> is the
For example, type ping
<IPaddress>
is the number you entered into your analyzer in the
my87
hostnarne
11.
assigned to your IP address.
You should see something like this:
Pinging
Reply from 15.4.43.5: bytes=32
Reply from 15.4.43.5: bytes=32
Reply from 15.4.43.5: bytes=32
Reply from 15.4.43.5: bytes=32
your connection may have a problem. Refer to Chapter 7 for troubleshooting
help and information.
l-10
Connecting and Configuring the Analyzer
RunningPing
The ping program is typically found in the
under UNIX
“/et?
or
“/usr/etc”
directory, so
you must add the appropriate directory to your PATH, or type the full path:
/etc/ping <IP
or
/etc/ping <hostname>
address> 64 5
64 5
This command tells ping to send 5 packets of 64 bytes each.
The output should look something like this:
PING hostname: 64 byte packets
64
bytes
64
bytes
64
bytes
64
bytes
64
bytes
---5 packets transmitted, 5 packets received, 0% packet loss
round-trip
from
from
from
from
from
hostname
15.4.43.5:
15.4.43.5:
15.4.43.5: icmp,seq=2. time=4.
15.4.43.5: icmp,seq=3. time=3.
15.4.43.5:
PING Statistics----
(ms) min/avg/max
icmp,seq=O.
icmp-seq=l.
icmp_seq=4.
=
3/4/8
time=8.
time=4.
time=3.
ms
ms
ms
ms
ms
If you do not see any output after about 20 seconds, interrupt the ping
command using ^c (hold down the
this, ping should provide some statistics on how many packets were sent and
received. If the statistics look like this:
“Ctrl”
key, and press .c”). Once you do
----
hostname
4 packets transmitted, 0 packets received, 100% packet loss
your connection may have a problem. Refer to Chapter 7 for troubleshooting
help and information.
PING Statistics----
l-11
2
Accessing the Analyzer’s
Web Pages
Accessing the Analyzer’s Web Pages
Your analyzer has built-in Web pages that are accessible with a Web browser
such as
links to general product information, selected online documentation,
benchmarks,
Hewlett-Packard sites. You can also E-mail us with your comments and
feedback on the HP
Before you can access your analyzer with a Web browser, you need to connect
and configure your analyzer as described in Chapter 1.
Netscape
specihc
or Microsoft@ Internet Explorer. These Web pages contain
information about your analyzer, and general
87xx
family of analyzers.
2-2
Accessing the Analyzer with your Web Browser
lb access your analyzer, start your Web browser and connect to
“http://my8711”,
your analyzer.
When you are connected to your analyzer, a Web page will appear with the
following information on it:
l
Get a current screen snapshot.
l
Examine your analyzer’s conhguration.
l
Browse selected product documentation.
l
Review the Product Summary.
l
Other links
Click on the hyperlinks (any underlined words) to browse through the
analyzer’s pages.
where
“my8711”
is the
hostname
that has been assigned to
The rest of this chapter explains some of the areas you can browse in further
detail.
2-3
Accessing the Analyzer’s Web Pages
Accessing the Analyzer with your Web Browser
ScreenSnapshot
Clicking on “Get a current screen snapshot” shows an exact copy of your
analyzer’s current screen image. Using your Web browser’s “reload” function
assures you of having the most current image.
CAUTION
The screen image takes a few seconds to load. Do not push any buttons on
the analyzer or send any programmin
g commands to it while the snapshot is
loading, or an inaccurate image may result.
\
NOTE
Before capturing the screen image with your Web browser, you may wish to customize the look of the
image using the
more information.) In particular, you may want to choose
background, especially if you plan to print the page from your Web browser.
Analyzer
Clicking on “Examine your analyzer’s
of information that is equivalent to pressing (SYSTEM OPTIONS]
Xnstm@#S
Calo~ O@fon~
menu on your analyzer.
fn~~~s+
Gee
your analyzer’s
Vidm
Configuration
conEguration”
I&J
on the analyzer. This screen provides the model and
brings up a screen
llser’s Guide
to create a white
%wvico
for
serial number of your analyzer, Ermware revision, installed options, and
amount of memory.
2-4
Accessing the Analyzer’s Web Pages
Accessing the Analyzer with your Web Browser
Product Documentation
This section provides selected portions of your analyzer’s documentation
online, as well as benchmark information and information about product
upgrades and options.
The following list shows the links currently available on this page:
l
Optimizing your Measurements
l
Accessing Built-in Disks
0
Controlling I/O Ports
l
Accessing the Analyzer’s file system via the LAN
l
Accessing the Dynamic Data Disk via the LAN
l
Controlling the Analyzer via the LAN
l
HP
871xC
SCPI command reference
l
HP
8730A
SCPI command reference
l
IEE 488.2 common commands
l
Product Upgrades and Options
l
Transfer Speeds using
l
Transfer Speeds using LAN
l
Printing Speed
l
List of printed manuals
HP-II3
If there are additional portions of the analyzer’s documentation that you
think would be helpful to have online, please contact us via E-mail. Click on
“Contact HP” and “Send us your feedback!’ from your analyzer’s Web page.
2-5
Accessing the Analyzer’s Web Pages
Product
The links in this area provide generic information about the HP
and HP
available options are among the information provided here.
Other
At the bottom of every Web page in the analyzer, you’ll find the following
links:
TOP
Search
Contact HP
Copyright
Overview
8730A
family of analyzers. New features, compatibility issues, and
Links
takes you to the top of the current page.
takes you to the “Product Documentation” page.
takes you to a page that provides links to HP Web sites, as
well as the opportunity to provide HP with feedback on your
analyzer and its documentation.
takes you to copyright information.
871xC
2-6
3
Printing
Printing
Your analyzer can send hardcopy output directly to an HP LaserJet printer
on your network. In order to print to a LAN printer, your analyzer must
have the LAN state turned on, it must have its IP address set, and it must be
connected to your network. Refer to Chapter 1 if you have not yet configured
your analyzer as described.
Compatible Printers
The HP LaserJet 4 and HP LaserJet 5 families of printers are compatible with your analyzer for
printing directly via a point-to-point connection or over your network. These newer printers allow
you to enter the printer’s IP address directly from the front panel and do not require a boot server
computer. Your printer should have a
Some older printers, such as an HP LaserJet Ill, do not allow you to enter an IP address from the
front panel. They require a boot server computer on the network that configures (sets) the printer’s IP
address.
JetDirect
LAN card installed.
3-2
Configuring the Printer
Refer to your printer’s documentation for instructions on how to set up your
printer for LAN usage. Typically, you will need to contact your network
administrator to assign a unique IP address for your printer. Your printer
software will
turned on.
conEgure
the printer with the assigned IP address each time it is
3-3
Configuring the Analyzer for Printing to a LAN
Printer
‘lb
set up your analyzer to print hardcopies to a LAN printer:
1.
Press
2. Use the front panel knob, or the a a keys to highlight the LaserJet LAN
printer in the table. See Figure
3.
Press
(jHARD]
Sebct
Select
. See Figure
Copy
3-l.
Port .
3-l.
HARDCOPY DEVICE:File.
File Name
II
VICE TYPE
LANGUAGE HARDCOPY PORT
E
HP PlotterHPGLParallel Port
HP Plotter
HP Plotter
HP Printer
HP Printer
HP
Figure 3-1. Selecting and Configuring the LAN Printer
Printing
Configuring the Analyzer for Printing to a LAN Printer
4.
Press
LIW Printr fP Mdr
the network printer you wish to use. Use the
. See Figure
3-l.
Enter the IP address of
C&XV&T IWtq
key to clear
the current or default setting, and then input the IP address using the
analyzer’s numeric keypad. (You can also use a keyboard connected to the
rear panel DIN KEYBOARD connector to enter the IP address.)
5.
Press
PT&OT‘ WSIW
conEguration,
and use the
and the
Deitie
D&f fns PCX.5
key to set up the printer
H~~cop~ key to
deEne
the output. See
your analyzer’s User’s Guide for information on configuring printers and
deEning
NOTE
You can print color screen dumps if you send the output to an HP Color LaserJet or HP Color LaserJet
5 printer. Press
output.
Define PC%5 CbloT‘
.
6. After you have completed the previous steps, you can send a hardcopy to
your LAN printer by simply pressing
CHARDCOPY) Stat
.
If You Have Trouble Printing
q
Make sure the LAN state is set to ON (see Chapter
q
Make sure the analyzer’s LAN
q
Make sure the printer is configured properly. Refer to your printer’s
II?
address has been set (see Chapter 1).
documentation or your network administrator.
q
Verify connectivity to printer using the analyzer’s built-in ping diagnostic
utility (see Chapter 7).
l),
3-6
4
Accessing the Analyzer’s
File System
Accessing the Analyzer’s File System
CAUTION
CAUTION
This chapter shows you how to access the analyzer’s
transfer protocol (FTP). This chapter also contains two simple examples: one
for copying a
a
lile
from the analyzer to your computer. The last section of this chapter
contains a summary of commonly used ftp commands.
This chapter assumes that your analyzer is physically connected to your local
area network. If it is not connected, refer to Chapter 1 for information on
how to connect the system.
When you access the analyzer, you will have read and write access to the
analyzer’s
are described in Chapter 5).
It is possible to have multiple FTP sessions open to your analyzer
simultaneously. Files can be corrupted when more than one session is
accessing the analyzer at a time.
accessing the analyzer’s file system at a time.
This caution also applies to file system access performed via SCPI commands
over the LAN, HP-IB, or
There is no password protection built into the analyzer. This means that files
are not protected against either deletion or being written over.
file
to the analyzer from your computer, and one for copying
iile
system (except for some files in the dynamic “data” disk, which
‘lake
care to not have more than one session
IBASIC.
lile
system using file
4-2
Using FTP to Access the Analyzer
If you are using a
UNIX
workstation, you have built-in networking software
that includes ftp. The same is true if you are operating under Windows 95.
lf
you are operating under Windows 3.1, you will need to have additional
networking software that includes ftp.
NOTE
There are versions of FTP programs available with a graphical user interface
Software” later in this chapter for information on using these types of programs.
IGUI).
See “Using GUI
FTP
To access the analyzer’s file system using ftp:
1. Enter the following command on your computer or workstation:
ftp
<hostname>
or
ftp
<IP
address>
For example, type f tp
2. When the connection is made, you will be prompted for a
my87
11.
login
name. Just
press the Return or Enter key on your computer.
3. lf you are prompted for a password, just press the Return or Enter key on
your computer. There is no password protection built into your analyzer.
4. You should now have a prompt on your computer display that looks like
this:
ftp>
4-3
Accessing the Analyzer’s File
Using
FTP
to Access the Analyzer
&stem
5. Type dir at the prompt. Your computer display should return something
that looks like this:
200 Port command okay
150 Opening
drwxrwxrwx
drwxrwxrwx
drwxrwxrwx
drwxrwxrwx
data connection
2 root
2 root
2 root
2 root
SYS
SYS
SYS
SYS
for
LIST
/
1024
1024
1024
1024
Ott
Ott
Ott
Ott
9
1997
9
1997
91997
9
1997
int
nvram
ram
data
226 File sent OK
You can read and write
files
to:
int-a DOS formatted floppy disk in the analyzer’s 3.5” floppy disk
The data directory is a dynamic data disk with files that are linked
directly to analyzer operations. See Chapter 5 for information on accessing
and using this directory.
6. Use the examples in this chapter to copy a file to the analyzer and
to retrieve a
fle
from the analyzer. Also see “Commonly Used FTP
Commands” in this chapter for commonly used ftp commands.
4-4
Accessing the Analyzer's File System
Using FTP to Access the Analyzer
CAUTION
Example1:
Copy a
File to
the Analyzer
You can copy files from your computer to your analyzer. For instance, you
may want to develop an
IRASIC
program on your computer and then copy it
to the analyzer so that you can run it from the front panel of the analyzer.
This example copies a file,
“ib-prog”,
from your computer to the analyzer’s
nvram disk.
1. On your computer or workstation, change directories to the directory that
contains the file “ib-prog.”
2. On your computer or workstation, access the analyzer by typing ftp
hostname.
enter a
Press Return or Enter twice (remember you don’t need to
login
name or password).
3. Change to the non-volatile RAM disk in the analyzer by typing cd nvram
at the ftp prompt.
4. Specify the type of
ascii at the ftp prompt.
Binary
llles
can be corrupted if you attempt to transfer them in “ascii” mode.
lile
you will be transferring by typing either binary or
5. Type put ib,prog at the ftp prompt.
6. Type bye at the ftp prompt to exit ftp.
You can can now recall and run the program from the front panel of your
analyzer.
1.
Press [SAVE RECALL)
2.
Press
Prkar Renu Progr?ams
Sslect DE&B Non-V61 RAM ~tgk
Use the front panel knob to highlight the
.
.
IB-PROG hle.
3. Press Recall Program
Bun.
4-5
Accessing the Analyzer’s File System
Using FTP to Access the Analyzer
NOTE
You can also download and automatically run
Chapter 5 for information on accessing this disk.
IHASIC
programs by accessing the data disk. See
Copying Files from UNIX
When
copYing
files from a UNIX environment to the analyzer, files that do not meet the DOS
file-naming criteria
comply For example, if You copy a file from UNIX named
“ibasic-pabc”
(58
characters in filename, with 13 characters in
on the analyzer. There will be no feedback or indication from ftp that this has occurred.
extensiont
“ibasic-program.abcd”
will be truncated to
it will appear as
4-6
Accessing the Analyzer’s File System
UsinN
FTP to Access the Analyzer
Example2:
You can copy files from your analyzer to your computer. For instance, you
may want to retrieve saved measurement data from your analyzer (or a group
of analyzers) for statistical analysis on your computer. In another scenario,
you may have automated your measurement system with an
saving data and/or instrument states to the analyzer’s RAM disk. Your remote
computer could, asynchronously, be copying and then deleting the
the RAM disk, assuring backup of data, and preventing the RAM disk from
filling up.
You may also want to copy instrument states and calibrations to your
computer as a backup, eliminating the need for backups on floppy disks.
This example copies a
a directory on your computer or workstation.
1. On your computer or workstation, access the analyzer by typing
ftp hostname. Press Return or Enter twice (remember you don’t need to
enter a
2. Change to the non-volatile RAM disk in the analyzer by typing cd nvram
at the ftp prompt.
3. If necessary, use the
your computer where you want to put the file. For example: type
led /users/myname/87lx_data.
Retrieve a
flIe “STATE:!.STA”
login
name or password).
led
Filefrom
from your analyzer’s nvram disk to
command to change to the local directory on
the Analyzer
IBASIC
program
hles
from
CAUTION
4. Specify the type of file you will be transferring by typing either binary or
ascii at the ftp prompt.
Binary
5. Type get
6. Type bye at the ftp prompt to exit ftp.
7. Verify the
iiles
can be corrupted if you attempt to transfer them in “ascii” mode.
copied to.
state2.
ille
sta at the ftp prompt.
was copied by listing the contents of the directory it was
4-7
Commonly Used FTP Commands
The exact commands you use within ftp depend on the software. If you are
not familiar with your ftp software, type
see a list of commands.
The following table lists and provides a brief description of some commonly
used ftp commands.
I‘?”
or “help” at the ftp prompt to
4-8
Table 4-1. FTP Commands
Accessing the Analyzer’s File System
Commonly Used FTP Commands
Command
ascii
binarvSets the file transfer
bye
cd remoredireaory
delete remote-fib
dir
[remote-direaoryl
get
remureA
helpProvides a list of ftp commands.
help commend
imaoe
Icd
[local-dkeaoryl
Is
[remote-direaory]
mget
mput
[remore-fihl
[low/-fibs]
[/oM/J%]
Sets the file transfer type to ASCII.
tvoe
to binarv.
Closes the connection to the host and exits ftp.
I
Sets the working directory on the host to
Deletes remote-fib or empty remote-direaory.
lists the contents of the specified
contents of the current remote directory ara listed.
Copies
remureA,
the
lowlJ&
Provides a brief description of commend.
Sets the file transfer tvoe to binarv.
Sets the local working directory to /owLdkeaory.
lists the contents of the specified
the contents of the current remote directory ere listed.
Copies multiple remore-fibsto the local system. Supports metacharacters such as
Copies multiple
name.
low/-fibs
to
/ow/LfiY.
to the remote system. Supports metacharacters such as
Description
remore-direaory.
remore-dimaory.
If /ow/Lfih~ is unspecified, ftp uses the
remoteAieaory.
If remofe-direaoryis unspecified, the
If the remore-diieaoryis unspecified,
remore-&
I
name as
‘*‘.
I+‘.
put
/ow/JiIs
[remote-fib]
quitCloses the connection to the host and exits ftp.
Copies
the
low/&
remote-&
to remote
name.
fik
If remote-fib is unspecified, ftp uses the
low/-r%
name es
4-9
Using GUI FTP Software
There are versions of FTP programs available with a graphical user interface
(GUI). These programs can make transferring
your PC a simple “drag and drop” function.
NOTE
hles
between the analyzer and
The procedures in this section were developed using
intended as examples only Other GUI
directory format, and will probably have different steps.
Example:
Transferring
FTP
software may not be able to understand the analyzer’s
Files
and your PC
This example copies a
nvram disk.
1. Start the FTP program and
l
Set View
normal window.)
l
Under the Options menu, set Server Directory Format to List
Filenames Only.
hle,
“ib-prog” ,
conhgure
to
Split Window. (View both the command window and the
ReflectionTM FTP
for Windows
NT@.
They are
between the Analyzer
from your computer to the analyzer’s
as follows:
2. Type your analyzer’s
3. Click on Open.
4-10
hostname
in the Server Name box.
Accessing the Analyzer’s File System
4. You will be prompted for a user name. Since the analyzer does not
require this (but the program does), you can type anything in the box.
One character will
sufhce.
5. You will be prompted for a password. This is not required. Just click on
OK.
6. To change to the non-volatile RAM disk in the analyzer, click inside the
command window and then type cd nvram at the
ftp>
prompt.
7. Use the Client side of the window to change directories on your PC to
the directory that contains the
hle “ib-prog”.
CAUTION
8. Click on the file
“ib-prog”
and “drag” it over to the Server side of the
window and “drop” it.
9. The file has been transferred to the non-volatile RAM disk on your
analyzer.
10. lb drag and drop multiple fles, just hold down the @ key on your PC
while selecting files with the mouse. Then when you drag and drop, your
entire selection will be transferred.
11. You can also transfer
hles
from the analyzer to your computer by
dragging files in the other direction.
Be sure to use the appropriate
hle
transfer method (binary or ASCII) for
the file(s) you are transferring. If you are transferring files to or from the
analyzer’s dynamic data disk, check
‘fable
5-l for
hle
types.
4-11
5
Accessing the Analyzer’s
Dynamic Data Disk
Accessing the Analyzer’s Dynamic Data
Disk
Your analyzer has an ftp directory called “data,” which is a dynamic data
disk. The
you can put another analyzer’s instrument state into this directory and
the analyzer will automatically recall this state. You can do the same with
an
BASIC
automatically run. You can also pull a screendump from the analyzer directly
into a file in either PCX or HP-GL format.
llIes
in this directory trigger analyzer operations. So, for example,
program: copy it to the analyzer’s data directory and it will
File
ttatortal
colrtal
data.sta’
trot-caLcall
The following
liles
make up the contents of the dynamic data disk:
Table
5-l.
The Dynamic Data Disk Contents
File TypeDescription
binary
binaryThis file contains the analyzer’s currant calibration and instrument state settings. The
binary
binary
This file contains the analyzer’s currant instrument state settings. Instrument state settings
consist of all the stimulus and response parameters that sat up the analyzer to make a
speciiic
measurement including markers, limit lines, and memory traces. Instrument state
information is saved and recalled for both measurement channels. You can either retrieve this
information from the analyzer, or you can put another analyzar’s instrument state information
into this file, which will cause the analyzer to immediately enter the new instrument state.
measurement calibration information is the measurement correction data that the analyzer
creates when you make a calibration. Measurement calibration information is saved and
recalled for both measurement channels. You can either retrieve this information from the
analyzer, or you can put another analyzer’s calibration and instrument state information into
this file, which will cause the analyzer to immediately enter the new
This file contains the measurement data for both measurement channels. You can either
retrieve this information from the analyzer, or you can put data trace information from
another analyzer into this file.
thr
use
WI?~ 87075C
currently resides on the analyzer’s non-volatile RAM disk. You can either retrieve this
information from the analyzer, or you can put test sat calibration data into this file.
rest sets0174 This file contains the test set calibration data that
cal
and instrument state.
1 See ‘Saving and Recalling Analyzer States’ in this chapter for information on how to use this file
5-2
Table
Accessing the Analyzer’s Dynamic Data Disk
5-l.
The Dynamic Data Disk Contents (continued)
File
prop.bad
,*
prog-ren.besl’*
prog-run.scpl**
screen.hp13
screen.pcw3
screen-m.hg13
screen-m.pcx3
screen-m.flif3
Penn-all.bft4
pit4
trecel.ern5
File Type
ASCII
ASCII
ASCII
ASCIIThis file contains the current screen image in HP-GL format. It is available for uploading to a
1
binary
ASCII
binary
binary
ASCII
1
ASCII 1
I
ASCII
This file contains the currently loaded
that is currantlv in this file or
This file accepts a copy of an
This file accepts a copy of a file containing
commands.
file on vour comoutar.
This file contains the currant screen image in PCX format. It is available for uploading to a
1
file on your computer.
This file contains the current screen image, as wall as the currant softkay menu, in HP-GL
format. It is available for uploading to a file on your computer.
This file contains the currant screen imaga, as well as the currant softkay menu, in PCX
format. It is available for uploading to a file on your computer.
This file contains the currant screen image, as well as the currant softkay menu, in
format. It is available for uploading to a file on your computer.
This file contains a listing of all of the instrument’s operating parameters in ASCII text format.
This file contains the information in the current operating parameters screen in ASCII text
format.
1
This file contains the measurement channel 1 measurement date in ASCII spreadsheet format.
Description
IBASIC
program. You can either retrieve the program
COW
a new
uroaram
to this file.
IBASIC
program and immediately runs it.
SCPI
commands and immediately executes the
GIF
1
trace2.pm5
tracel.slp5
trace2.81
1 See “Copying Programs to and from the Analyzer” in this chapter for information on how to use this file
2 kbur analyzer must have
3 See “Copying a Screen Image to a Local
4 See
5 See “Retrieving Measurement
p5
“Copving
Instrument Parameters in ASCII Text Format” in this chapter for information on how to use this
ASCII
ASCII
ASCIIThis file contains the measurement channel 2 measurement data in Touchstone format.
BASIC,
Option
Oata
This file contains the measurement channel 2 maesurament data in ASCII spreadsheet format.
This file contains the measurement channel 1 measurement data in Touchstone format.
lC2,
to use this file
Fit<
in this chapter for information on how to use this fila
in ASCII Format” in this chapter for information on how to use this
file
fila
5-3
Saving and Recalling Analyzer States
This section describes how to use the state. sta, cal. sta, and data. sta
files
that reside in the data directory of the analyzer. See
description of each of these
You may have a particular instrument state set up on an analyzer and would
like to set up that state on one or more additional analyzers. lb do this you
should:
hles.
‘fable 5-l
for a brief
1. Connect to the analyzer using
your computer or workstation. See Chapter 4 for instructions on how to
do this.
2. Type cd data at the ftp prompt.
3. Type dir at the ftp prompt to see the listing of files in this directory, as
well as a short description of each of them.
4. Type binary at the ftp prompt to specify a binary file transfer.
5. Type get state. sta at the prompt to retrieve the current instrument
state file from the analyzer. This copies the file state.sta (which contains
the analyzer’s current instrument state information) to your computer.
6. Close the connection and exit ftp by typing bye or quit at the prompt.
7. Now you can put the instrument state into a different analyzer. Connect to
the desired analyzer using ftp. For example, type ftp
computer or workstation.
8. Type cd data at the ftp prompt.
9. Type put state. sta at the ftp prompt. This copies the contents of the
state.sta
to. The new analyzer will immediately reinitialize itself with the new
instrument state.
The above procedure can be performed with the cal . sta and data. sta
as well.
file from your computer to the new analyzer you are connected
ftp.
For example, type f tp
analyzer1
analyzer2
on
on your
files
5-4
Accessing the Analyzer’s Dynamic Data Disk
Saving and Recalling Analyzer States
NOTE
It is possible to have saved an instrument state file from the front panel of the analyzer that contains
not only the instrument state settings, but the current calibration and measurement data as well.
Putting this one file into the state. sta file will cause the analyzer to recall instrument state, cal
state, and measurement data.
CAUTION
When transferring these files between instruments with different model
numbers and/or option configurations, it is possible that some instrument
state settings will not be compatible. For example, if you try to put an
instrument state with a stop frequency of 3
HP
8711C
will limit the frequency to 1.3
GHz
into an HP
GHz
(its high end limit). When you
8711C,
the
transfer this file over ftp, you will not receive any warning or indicator that
this has occurred.
Copying Files from UNIX
When copying files from a UNIX environment to the analyzer, files that do not meet the DOS
file-naming criteria
to comply. For example, if you copy a file from UNIX named
as
“ibasic-p.abc”
happened.
(53
characters in filename, with 53 characters in extension) will be truncated
“ibasic-program.abcd”
on the analyzer. There will be no feedback or indication from ftp that this has
it will appear
5-5
Copying Programs to and from the Analyzer
This section describes how to use the prog. bas,
prog,run. scp
Iiles
that reside in the data directory of the analyzer. See
prog-run.
bas, and
lkble5-l for a brief description of each of these files.
NOTE
Your analyzer must have Option
See Also
Refer to Chapter 6 for information on controlling the analyzer from a computer, and how to interact
with an
IBASIC
program running in the analyzer.
lC2 (IBASIC)
to use these program files.
To Copy an IBASIC
If you have Option
controller. You can create
lC2 (IBASIC)
Program to orfrom
the
Analyzer
in your analyzer, your analyzer has a built-in
IBASIC
programs on your computer and copy them
to your analyzer. Conversely, you can retrieve a copy of the currently loaded
IBASIC
program from your analyzer to your computer. From there you might
want to copy it into another analyzer, or edit it.
5-6
Accessing the Analyzer’s Dynamic Data Disk
Copying Programs to and from the Analyzer
To copy an
1. Connect to the analyzer using ftp. For example, type f tp
IBASIC
program
file
named
“ib-prog”
to the analyzer:
my8711
on your
computer or workstation. See Chapter 4 for instructions on how to do this.
2. Type cd data at the ftp prompt.
3. Type put ib,prog prog . bas at the prompt to put a copy of your
program into the analyzer.
4. Close the connection and exit ftp by typing bye or quit at the prompt.
5.
lb run your
IBASIC
program press [SYSTEM OPTIONS)
XBMXC!
RW
on the
analyzer.
NOTE
You can eliminate this last step, and have your program run automatically ty using the dynamic data
disk file named prog,run. bas. See “To Copy and Run a Program” later in this section.
!Ib
copy the currently loaded
IBASIC
program from your analyzer to your
computer:
1. Connect to the analyzer using ftp. For example, type
my87
11 on your
computer or workstation. See Chapter 4 for instructions on how to do this.
2. Type cd data at the ftp prompt.
3. Type dir at the ftp prompt to see the listing of files in this directory, as
well as a short description of each of them.
4. Type get prog . bas at the prompt to retrieve the current
IBASIC
program file from the analyzer. This copies the program Ele prog.bas to
your computer. You may want to give the
file
a unique name on your local
computer by typing something like this: get prog . bas newf ile.
5. Close the connection and exit ftp by typing bye or quit at the prompt.
5-7
Accessing the Analyzer’s Dynamic Data Disk
Copying Programs to and from the Analyzer
To Copy and
You can create an
RunaProgram
IBASIC
program or a file with a list of SCPI commands
with One
Command
on your computer, and then copy and automatically run it by using the
prog-run.
lb copy and immediately run an
1. Connect to the analyzer using ftp. For example, type
bas and prog,run. scp files.
IBASIC
program called
ib-prog:
my871 1
on your
computer or workstation. See Chapter 4 for instructions on how to do this.
2. Type cd data at the ftp prompt.
3. Type put ib,prog
prog,run.bas
at the prompt. This copies your
program to the analyzer and immediately runs it.
4. You can also copy a
lile
with a list of SCPI commands to the
prog,run. scp data file and the commands will be executed immediately.
See your analyzer’s Programmer’s Guide for a list of SCPI commands.
The
lile
you copy to “prog-run.scp” should simply be a list of SCPI
commands. For example, a file containing these lines:
SENSl:FUNC ‘XFR:POW:RAT
CALCl:MARK:FUNC
MAX
2,O’;DET
NBAN;*WAI
DISP:WINDl:TRAC:Y:AUTO ONCE
sets the analyzer to measure transmission, places a marker on the
maximum point, and then autoscales the measurement trace.
NOTE
Avoid the use of queries, as there is no way to read back the analyzer’s response.
I
5-8
,
Copying a Screen Image to a Local File
This section describes how to copy screen images from the analyzer to a
fIe
on your computer.
To copy a screen image to your computer:
1. Connect to the analyzer using ftp. For example, type
my871 1
on your
computer or workstation. See Chapter 4 for instructions on how to do this.
2. Type cd data at the ftp prompt.
3. Type dir at the ftp prompt to see the listing of files in this directory, as
well as a short description of each of them.
4. Decide which screen image file you want to retrieve and then use the
get command to transfer it to your computer. For example, type
get screen .pcx image .pcx to retrieve the current screen image in
PCX format, and place it into a file named image
NOTE
The look of the image you retrieve will depend on the selections in the
menu on your analyzer, as well as the file you choose to retrieve from the data directory For example,
Figure
5-I
was retrieved with the
includes the measurement graph and the marker table Figure 5-2 was retrieved with the analyzer’s
hardcopy mode defined as Graph
“screen.hgl”
OrrXy
file using the analyzer’s default hardcopy mode, which
using the
“screen-m.hgV
.pcx
on your computer.
II&~zH Wtu?dc~~py
file.
5-9
Accessing the Analyzer’s Dynamic Data Disk
Copying a Screen Image to a local File
Figure
6-1. scrnn.hgl
Figure 6-2.
scram-m.hgl
5-10
Copying Instrument Parameters in ASCII Text
Format
This section describes how to use the parm,all . txt and parm,screen. txt
fles that reside in the data directory of the analyzer. See
description of each of these files.
Instrument parameters can be viewed on the analyzer by pressing
CSYSTEM
0PrIoNsJ Operating
Parameters . Several screens of information
are available (the exact number depends upon your model number and
option configuration). These screens describe all the current settings and
configurations of the analyzer. You can copy all of these screens using
“par-m-all.txt”
G.le
on your computer.
or just the current screen with
“parm-screen.txt”
To copy instrument operating parameters:
lhble 5-l
to an ASCII
for a brief
1. Connect to the analyzer using ftp. For example, type
my87
11 on your
computer or workstation. See Chapter 4 for instructions on how to do this.
2. Type cd data at the ftp prompt.
3. Type get parm,all . txt or get parm,screen. txt at the prompt
to copy the desired parameters to your local computer. You can
give the file a unique name on your local computer by typing:
get
parrn-all
. txt newf ile.
4. Close the connection and exit ftp by typing bye or quit at the prompt.
Copying the
If you do not rename the
above), it will be truncated to
There will be no feedback or indication from ftp that this has happened.
parm-soreen.txt
“parm-screen.txt”
file to B DOS environment
file when copying it to a DOS environment (as in step 3
“parm-scr.txt”
in order to comply with
DOS
file-naming conventions.
5-11
Retrieving Measurement Data in ASCII Format
This section describes how to use the
trace1
analyzer. See Table 5-l for a brief description of each of these
Measurement data can be saved in ASCII formats that are compatible with
many personal computer software packages. The files with the
extension in the data directory contain measurement data in a two-column
format that is directly importable to Lotus@
spreadsheet programs. The
directory contain measurement data in a format that is importable into CAE
programs such as HP
lb retrieve measurement data:
1. Connect to the analyzer using ftp. For example, type
2. Type cd data at the ftp prompt.
3. Type get
4. Close the connection and exit ftp by typing bye or quit at the prompt.
. slp and
computer or workstation. See Chapter 4 for instructions on how to do this.
1 data in spreadsheet format. See
other trace data
computer by typing: get
trace2.
EEsof’s
trace1 .prn
hles.
slp
files
hles
Microwave Design System (MDS) and Series IV.
at the prompt to copy the measurement channel
You can give the
trace1 .prn
trace1 .prn, trace2 .pm,
that reside in the data directory of the
hles.
“.prn”
with the
Table
l-2-3@,
“.slp”
5-l for descriptions of the
hle
a unique name on your local
newf ile.
as well as other
extension in the data
my87
11 on your
5-12
Importing Graphics or Data into
PC Applications
Some of the newer PC word processor and spreadsheet programs allow you
to import graphics and data from the Web. The following examples illustrate
how to import a screen image from your analyzer into Microsoft@ Word 97,
and how to import trace data from your analyzer into Microsoft@ Excel 97.
Import a
ScreenSnapshot
into a Word
Processor
Program
This example steps you through importing a picture of the analyzer’s current
screen into a word processor. (These steps were developed using Microsoft@
Word 97. Other word processing programs may or may not have the same
capability, and will probably have different steps.)
1. Place the cursor at the point in your
imported graphic.
2. Click on Insert, Picture, From File. When the dialog box appears, type
http://my87ll/data/screen.pcxintheFile
3. Click on the Insert button in the dialog box.
file
where you want to place the
namebox.
5-13
Accessing
Importing Graphics or Data into
PC Applications
the-
Analyzer’s Dynamic
Oata
Disk
Import
This example steps you through importing the analyzer’s current trace data
into a spreadsheet program. (These steps were developed using Microsoft@
Excel 97. Other spreadsheet programs may or may not have the same
capability, and will probably have different steps.)
1. Click on File, Open. When the dialog box appears, type
http :
2. Click on the Open button in the dialog box.
3. A “Text Import Wizard” will guide you through customizing how you want
the data to appear in the spreadsheet. Figure 5-3 shows trace data (and a
screen snapshot) imported into a spreadsheet program.
TraceData
//my87ll/data/tracel.
into
a
Spreadsheet
sip
in the File name box.
Program
5-14
http.//ne!&71 l/data/trace1 .prn
Accessing the Analyzer’s Dynamic Data Disk
php66c
Figure 5-3. Trace Data and Screen Snapshot Imported into a Spreadsheet
5-15
6
Controlling the Analyzer
via the LAN
Controlling the Analyzer via the LAN
To control your analyzer via LAN, you must use socket programming to send
SCPI commands. Your analyzer is listening for SCPI commands at port 5025.
You can also control your analyzer by copying programs to the data directory
via ftp (see Chapter 5, and see
this chapter).
NOTE
“IBASIC
Communication Across the LAN” in
The example programs described in this chapter are on the “Example Programs
with your analyzer.
DisK
that was shipped
6-2
The Command Parser Port
You can telnet to the analyzer’s command parser port and send SCPI
programming interactively, or you can write a program that opens a socket
and sends commands to it.
The analyzer listens for SCPI commands on port 23 and port 5025. Port 23
is intended for interactive use, using telnet. When you connect to port 23, a
welcome message is displayed. Port 5025 is intended for program use. When
you connect to port 5025, no welcome message is displayed.
Entering Commands
DirectlyusingTelnet
Before connecting to your analyzer using telnet, you must have connected
and configured your analyzer as described in Chapter 1.
Using telnet to send commands to your analyzer works in a similar way to
communicating over HP-IB; you establish a connection with the analyzer, and
then send and/or receive information via SCPI commands.
NOTE
In the current version of firmwaren there is no way to mirror
or
SROs.
To do so requires XL/LAN, which has not yet been implemented.
As a workaround, you can use the HP
can control your analyzer via
HP-B
E2050A
LAN to
HP-16
operations such as “device clear”
HP-M
gateway, which supports
SICULAN
and
6-3
Controlling the Analyzer via the LAN
The Command Parser Port
The syntax of the telnet command is:
Example
telnet
For example, type telnet
hostname
my8711.
A brief message should appear
confirming the connection, and telling you the escape sequence for breaking
the connection.
Trying. . .
Connected to my8711.sr.hp.com.
Escape character is
Welcome to the HP
j-1’.
871xC
SCPI Parser
When you connect to the analyzer, there is no prompt. You can now begin
typing analyzer SCPI commands; query results appear on the next line. When
you are done, break the telnet connection using the escape character (in this
case Ctrl
lb connect to the analyzer named
I),
telnet
and type quit. See the detailed example that follows.
“my8711”,
enter:
my8711
The computer responds with:
Trying. . .
Connected to my8711.sr.hp.com
Escape character is
Welcome to the HP
‘-1’
.
871xC
SCPI Parser
The connection was successful. Because the analyzer does not provide a
prompt, start entering progr
amming
commands. Typical commands might be:
SENSl:FUNC
CALCl:MARK:FUNC
‘XFR:POW:RAT 2,O’:DET
MAX
NBAN;*OPC?
CALCl:MARK:POIN?
The small program above sets the analyzer to measure transmission, places
a marker on the maximum point, and then queries the analyzer for the
amplitude of the marker.
6-4
Controlling the Analyzer via the LAN
The Command Parser Port
You need to press Enter after typing in each command. After pressing Enter
on the last line in the example above, the analyzer returns the amplitude
level of the marker to your computer and displays it on the next line. For
example, after
typing
CALCl
: MARK : POIN? and pressing Enter, the computer
would display:
+1.71000000000E+002
When you are done, close the telnet connection. Enter the escape character
to get the telnet prompt. The escape character (Ctrl and
“I”
in this example)
does not print.
At the telnet prompt, type quit or close.
The telnet connection closes and you see your regular prompt.
Connection closed.
$
NOTE
If your telnet connection is in a mode called “line-by-line,” there is no local echo. This means you will
not be able to see the characters you are typing on your computer’s display until after you press the
Enter key
To remedy this, you need to change your telnet connection to ‘character-by-character” mode. This can
be accomplished in most systems by escaping out of telnet to the
typing mode char. If this does not work, consult your telnet program’s documentation for how to
change to “character-by-character” mode.
I
telnet>
prompt, and then
I
6-5
Controlling the Analyzer via the LAN
The Command Parser Port
Programming
The following example program demonstrates simple socket programming. It
is written in C, and compiles in the HP-UX UNIX environment. It should be
portable to other UNIX environments with only minor changes.
In UNIX, LAN communication via sockets is very similar to reading or writing
a
iile.
The only difference is the opensocket (1 routine, which uses a few
network library routines to create the
connection is created, the standard
network communication.
In Windows, the routines send( > and
fwrite ( > may not work on sockets.
The program reads the analyzer’s hostname from the command line, followed
by the SCPI command. It then opens a socket to the analyzer using port
5025, and sends the command. If the command appears to be a query, the
program queries the analyzer for a response, and prints the response.
This example program can also be used as a utility to talk to your analyzer
from the command prompt on your UNIX workstation or
from within a script.
If the remote computer is not listening for a LAN connection at the specified
port, this command will block, and wait for the remote computer to accept
the connection. In this example, it will time out after 30 seconds. If no
timeout interval is specified, it will time out after the default timeout of about
75 seconds (the standard
The following
using
IBASIC.
BASIC
TCP/IP
timeout period).
example program demonstrates LAN communication
100
!
! This program demonstrates how
110
120
!
with a remote computer via LAN. This is done using a
!
130
140
150
SCPI command that sends a LAN message to the computer:
!
! 8003 is an arbitrary unused port number.
This is a SCPI Demo to demonstrate how one can communicate with the
network analyzer with a JAVA capable browser. This is the
Main class for the SCPI Demo.
support the I/O commands and a
the applet.
To use this applet, either compile this applet with a Java compiler
or use the existing compiled classes.
Socks.class and ScpiDemo.html to a floppy. Insert the floppy into
your instrument.Load up a browser on your computer and do the
1. Load this URL in your browser:
ftp://CYour
2. There should be two text windows show up in the browser:
The top one is the SCPI response text area for any response
coming back from the instrument.
to enter a SCPI command.
If the command expects a response, it will show up in the top
window.
ScpiDemo
Thread
Socks
URL
TextField
TextArea
instrument's IP address or name>/int/ScpiDemo.html