EasyManua.ls Logo

Agilent Technologies N1996A-503 - Page 308

Agilent Technologies N1996A-503
366 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
Loading...
308 Chapter 5
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.
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.
NOTE The port number you will use for your socket connection to the
instrument is 5025.
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.

Table of Contents

Related product manuals