Other Topics about GPIB Concepts
The analyzer supports the following interfaces for SICL / VISA communication:
LAN - as a remote GPIB interface. The analyzer LAN is presented as a virtual GPIB interface. It does NOT support simple TCPIP-based control. Therefore, when configuring the Keysight IO libraries on your PC, add a REMOTE GPIB interface, which uses the LAN client interface.
GPIB - requires that your external controller have a GPIB card.
Note: For optimum LAN interface performance, use COM to control the analyzer . SCPI commands can be sent to the analyzer using the COM SCPIStringParser object.
The following interfaces are NOT supported:
USB
Serial
Important Note:To enable VISA or SICL communication over LAN, you must do the following:
The analyzer is now ready to be controlled over LAN. Learn more about this dialog box.
|
The Keysight I/O libraries includes the drivers to allow you to communicate with Keysight test instruments. Every analyzer is shipped with the Keysight I/O libraries installed. We recommend you do NOT upgrade the Keysight I/O libraries on the analyzer as unexpected results may occur. If you choose to upgrade the Keysight I/O libraries on the analyzer , do NOT change the default folder path in the InstallShield Wizard.
To communicate with the analyzer , the Keysight I/O libraries must also be installed on your external controller. To purchase the Keysight I/O libraries, or download a free upgrade, go to www.Keysight.com and search for IO Libraries. Scroll to find Software, Firmware & Drivers.
You can run your SICL / VISA program on the analyzer to control the analyzer . Although the Keysight I/O libraries are already installed on the analyzer , it is configured as the Host. You must also configure a SICL or VISA LAN Client interface on the analyzer , specifying the LAN hostname of that same analyzer .
If your program uses the COM interface to VISA, and is compiled on a PC with the Keysight IO Libraries Suite (version 14 or later), and the resulting executable is copied and run on the analyzer , it will produce a “type mismatch error”. This is because the analyzer has the ‘M’ version of Keysight I/O libraries. The following Visual Basic code is an example of how to avoid this error when communicating with the analyzer from within the analyzer :
Dim rm As IResourceManager
Dim fmio As IFormattedIO488
Set rm = CreateObject("AgilentRM.SRMCls")
Set fmio = CreateObject("VISA.BasicFormattedIO")
Set fmio.IO = rm.Open("GPIB0::22")
fmio.WriteString "*IDN?" & Chr(10)
MsgBox fmio.ReadString()
The analyzer can NOT be both a controller and talker/listener on the same GPIB bus. Using SICL / VISA, you can use LAN to control the analyzer , leaving the analyzer free to use the rear-panel GPIB interface to control other GPIB devices.
Open the Keysight Connection Expert.
Select each GPIB Interface and verify (or make) the default settings in the following table. These settings are REQUIRED when using a 82357A USB / GPIB Interface with the analyzer .
When complete, click Accept to close the Keysight Connection Expert.
VISA Interface Name |
SICL Interface Name |
Dialog box title |
Description |
GPIB0 |
gpib0 |
GPIB Using NI-488.2 |
analyzer Rear-panel GPIB connector. This GPIB interface can be used to control the analyzer OR for the analyzer to control external equipment. IT CAN NOT DO BOTH IN THE SAME PROGRAM. Learn more about pass-through options. |
GPIB1 |
hpib7 |
Internal Instrument Configuration |
Internal interface for programs running on the analyzer to control itself. |
GPIB4 |
inst0 |
Internal Instrument Configuration |
Used for LXI compliance. Do NOT delete this interface. |
Please refer to the Keysight I/O libraries documentation to learn how to configure your controller to communicate with the analyzer . These links can show you how to find the following analyzer information:
analyzer full computer name
GPIB Address
IP Address
This example program can help test your VISA configuration.