LAN Remote Control System

Other topics about Overview

Overview

The LAN (Local Area Network) remote control system provides two methods: controlling the E4982A using the SICL-LAN server and controlling the E4982A using the telnet server.

System Configuration

Use a LAN cable to connect between the E4982A and the external controller (computer). The following figure shows the overview of the system configuration of the LAN remote control system.

Configuration of the LAN remote control system

Required Equipment

Control over SICL-LAN Server

In the control system using the SICL-LAN server, communication between the external controller (client) and the E4982A (server) is performed using the SICL-LAN protocol. Communication is performed using SICL (Standard Instrument Control Library). You can control the E4982A by programming using SICL or VISA with the C language in the UNIX environment, or Visual C++, Visual Basic, or VEE in the Windows environment.

Preparing the E4982A

To communicate with the external controller, follow these steps to turn on the SICL-LAN server of the E4982A in advance.

  1. Turn OFF the Web Server of the E4982A.

System > Misc Setup > Network Setup > Web Server [OFF]

  1. The SICL-LAN Server is enabled. Turn ON the SICL-LAN Server of the E4982A.

System > Misc Setup > Network Setup > SICL-LAN Server  [ON]

  1. By default, the SICL-LAN configuration does not take effect until the E4982A firmware is restarted.

  2. On pressing any key, message appears for restarting the firmware. Click Yes to restart the firmware.

       

Preparing the external controller

In order to establish communication to the E4982A using the TCP/IP protocol, you need to set the I/O interface of the external controller in advance. This section shows the setting procedure when using the external controller in the Windows environment.

  1. From your PC's Start menu, click Program > Keysight Connection Expert to open the Keysight Connection Expert setting screen.

  2. In Instrument Tab, click +Add icon, the select LAN Instrument.

  3. In  Add a LAN device dialog box, select Enter Address tab, then type the IP address of the E4982A and click OK. You can change settings as necessary. For details, refer to the Keysight I/O Libraries Suite documentation.  

Control using C or Visual Basic

You can control the E4982A by programming using SICL with the C language in the UNIX environment, or Visual C++ or Visual Basic in the Windows environment.

Control using Keysight VEE

Keysight VEE allows you to control the E4982A via the I/O interface. The following example shows how to control the E4982A that is set as follows: the address of the SICL-LAN server is 17 and the IP address is 141.183.233.185.

  1. On the Keysight VEE's I/O menu, click Instrument Manager.

  2. In Instrument Manager, click Add...

  3. A new windows appears for the selection of Interface Type. Select TCPIP and click OK.

  4. In Instrument Properties, type any name for the Instrument in Name (for example: E4982A), and add TCPIP0::<IP Address> in the TCPIP Address, where <IP Address> is the IP address for E4982A. For example, if the IP address for E4982A is 141.183.233.185, then the value for TCPIP Address would be TCPIP0::141.183.233.185. Click OK after entering all parameters.

  5. The Instrument Manager displays the connection with E4982A.

The following figure shows an example of control using the I/O interface that has been set in the above procedure.

Control with Telnet Server

In the control system over telnet server, communications are performed through connection between the sockets provided by the processes of the external controller and the E4982A to establish a network path between them.

Pressing System > Tools > Telnet localhosts.. displays the command windows. Entering commands allows you to control the E4982A.

A socket is an endpoint for network connection; port 5024 and port 5025 are provided for the sockets for the E4982A. Port 5024 is provided for conversational control using telnet (user interface program for the TELNET protocol) and port 5025 for control from a program.

Preparing the E4982A

To communicate with the external controller, follow these steps to turn on the telnet server of the E4982A in advance.

System > Network Setup > Enable [ON]

Conversational control using telnet (using port 5024)

You can use telnet to perform conversational control by sending SCPI commands to the E4982A on a message-by-message basis. For telnet, the socket of port 5024 is used for communications.

In this example, in order to show you the control procedure using telnet, you control the E4982A (IP address: 141.183.233.185 and host name: e4982a) from the external controller in the Windows environment.

  1. Open the MS-DOS command prompt screen.

  2. At the MS-DOS prompt, type telnet 141.183.233.185 or telnet e4982a and press the return key.

  3. The telnet screen opens.

  4. Type telnet<ip>5024 or telnet<hostname>5024.

  5. Type a command and press the return key; it is sent to the E4982A and executed. If you enter a command that queries some data, the query response is displayed below the line you have entered the command.

  6. Press ] while holding down Ctrl in the telnet screen to break the connection to the E4982A. The telnet prompt appears. At the telnet prompt, type quit and press the Enter key. The connection to the E4982A breaks and telnet finishes.

Control from a program (using port 5025)

When controlling the E4982A from a program on the external controller, use the socket of port 5025 for connection.

Control using C or Visual Basic

You can control the E4982A by socket programming using the C language in the UNIX environment, or Visual C++ or Visual Basic in the Windows environment.

For socket programming, the library for network connection on the TCP/IP protocol is required. For the UNIX environment, BSD (Berkeley Software Distribution) Sockets API is available; for the Windows environment, WinSock (WinSock1.1 and WinSock2.0) created by porting BSD Sockets to Windows and expanding it is available.

Control using Keysight VEE

Keysight VEE allows you to control the E4982A through the connection to the socket of port 5025 using To/From Socket. The following figure shows an example (when the IP address of the E4982A is 192.168.0.3). Enter 5025 in Connect Port to specify the port for connection(1 in the following figure) and enter the IP address or host name of the E4982A in the field to specify the Host Name (2 in the following figure).