26SCPI Programming FundamentalsSimple SCPI Communication MethodsSimple SCPI Communication MethodsThis section describes some simple methods that you can use to create SCPI communication sessions between acomputer and an X-Series instrument:• “Communicating SCPI Using Telnet” on page 26• “Communicating SCPI using Keysight Connection Expert” on page 28Communicating SCPI Using TelnetYou can communicate SCPI using a Telnet connection from a computer to the instrument. The following proceduredescribes how to connect a computer running Microsoft Windows to the instrument.To complete the procedure, you will need to know the IP address of the instrument, which you can obtain by “DeterminingInstrument IP Address” on page 27.TIP In newer versions of Microsoft Windows (Windows Vista and Windows 7), you may first need toenable the Telnet client. See “Enabling Telnet in Windows” on page 28.NOTE In addition to the procedure described below, you can open a Telnet connection with theinstrument using an internet connection to the instrument’s Embedded Web Server. Thisprocedure is described in the Keysight X-Series Signal Analyzers: Getting Started Guide.To initiate a Telnet session and communicate SCPI using the LAN connection to the instrument:Step Action Notes1 Obtain the IP address of the instrument If necessary, you can obtain it via the procedure described in “Determining Instrument IPAddress” on page 27.2 Ensure that the instrument Telnetsocket is OnPress System, I/O Config, SCPI LAN, and make sure SCPI Telnet (Port 5023) is toggledto On.3 Enable computer’s Telnet client ifrequiredSee “Enabling Telnet in Windows” on page 28.4 Test LAN connection 1. On a Microsoft Windows computer, in the Taskbar select Start, Run, and type “cmd” toopen a DOS session.2. Enter the DOS command “ping”, a single space and the IP address of the instrument, andpress Enter. The results should resemble those shown in Figure 2-4. If the LANconnection is working, you will see statistics for Packets Sent and Packets Received.3. In the DOS window, type:“telnet 5023”, then press Enter.A Telnet window opens with a Welcome answerback from the instrument Host Name, andthe command prompt changes to “SCPI>”. You can enter any valid SCPI command at theprompt and receive responses to queries sent.