Using Socket Lan To Send Commands - Agilent Technologies PSA Series User And Programming Manual

Spectrum analyzers
Hide thumbs Also See for PSA Series:
Table of Contents

Advertisement

Using Socket LAN to Send Commands

Your instrument implements a sockets Applications Programming
Interface (API) compatible with Berkeley sockets, Winsock, and other
standard sockets APIs. You can write programs using sockets to control
your instrument by sending SCPI commands to a socket connection you
create in your program. Refer to
LAN
instrument.
Setting Up Your Instrument for Socket Programming
Before you can use socket programming, you must identify your
instrument's socket port number. The default is 5025.
1. Press
2. Notice that the port number you will use for your socket connection
to the instrument is 5025.
You may need to enable the termination character attribute when using
NOTE
the VISA libraries for socket communication. If the termchar attribute
is disabled, then no termination character is sent with the data and the
bus will time out waiting for it. (Set vi_attr_termchar_en)
LAN "device clear" capability has not been implemented in firmware
NOTE
revision A.01.xx.
Troubleshooting help:
You can verify that you can open a socket connection to your instrument
by using telnet:
telnet <IP address> 5025
Characters typed from your keyboard won't be echoed from the
instrument and the SCPI prompt won't be given. However, you will be
able to send commands and query the instrument. For example, you
can type *idn? and the instrument identification string will be
returned.
Chapter 5
in this chapter for example programs using sockets to control the
System, Config I/O, SCPI LAN, Socket Port
Programming Fundamentals
Using the LAN to Control the Instrument
Using a Java™ Applet Over Socket
.
315

Advertisement

Table of Contents
loading

This manual is also suitable for:

E4440aE4443aE4445aE4448aE4446a

Table of Contents