Hi all,
I know the E2050A LAN/GPIB gateway is not widely used, but anyway I wanted to post these short instructions on how to set it up because it may not be very intuitive at first, even with the manual.
Steps 2. and 9. were the most unintuitive ones for me.
Initial setup for usage with PyVISA:1. Plug in power and connect the Gateway with a LAN cable to your computer
2. Press the "Config Preset" button on the back of the E2050A. This will
temporarily start the gateway with a default configuration. The saved configuration is not changed or resetted except when you tell it explicitly to do so. When it is rebooted, the
saved configuration is loaded again.
3. Configure your LAN interface:
- IPv4 address: 192.0.0.1
- Netmask: 255.255.255.0
- Gateway: doesn't matter (eg. 0.0.0.0)
4. Connect to the E2050A using telnet:
telnet 192.0.0.192. This IP is the default IP when the "Config Preset" button was pressed.
5. Enter
factory-reset, hit enter. Confirm and reconnect as necessary.
6. Enter
ip: 192.168.178.188 (or whatever IP address you like)
7. Enter
default-gw: 192.168.178.1. The subnet (here: 192.168.178) has to match that of the IP above
8. Enter
subnet-mask: 255.255.255.09. Enter
hpib-name: gpib0. This is a very important step. The zero is there intentionally.
10. Change other configuration values if you like
11. Enter
reboot to save the config and reboot
12. Configure your LAN interface to match the configuration you chose for the gateway:
- IPv4 address: same as
default-gw - Netmask: 255.255.255.0
- Gateway: doesn't matter (eg. 0.0.0.0)
Connect to instruments through the gateway using PyVISA:import pyvisa
rm = pyvisa.ResourceManager()
instr = rm.open_resource("TCPIP0::<IP of E2050A>::gpib0,<gpib address>::INSTR")
print(instr.query("*IDN?"))
Hope this helps and saves some headaches.