Chapter 2 105
Programming Fundamentals
Using the LAN to Control the Analyzer
Using Socket LAN to Send Commands
Your analyzer 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 analyzer 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
analyzer.
Setting Up Your Analyzer for Socket Programming
Before you can use socket programming, you must identify your
analyzer’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 analyzer is 5025.