Agilent Technologies E4440-90189 Saw User Manual


 
530 Chapter6
Programming Fundamentals
Using the LAN to Control the Instrument
Programming Fundamentals
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 Using a Java™ Applet Over Socket
LAN in this chapter for example programs using sockets to control the
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
System, Config I/O, SCPI LAN, Socket Port.
2. Notice that the port number you will use for your socket connection
to the instrument is 5025.
NOTE You may need to enable the termination character attribute when using
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)
NOTE LAN “device clear” capability has not been implemented in firmware
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.