Control (GPIB) instruments over ethernet

Open framework handling interactions (GPIB, Ethernet, GPIB-over-Ethernet) with typical laboratory devices.
111 Downloads
Updated 6 May 2021

A open source framework handling interactions with typical laboratory devices. The framework consists of a communication layer and a device layer. A bottom layer for communication that can handle GPIB, Ethernet, and GPIB-over-Ethernet communication is the base of the framework. On top typical SCPI (Standard Commands for Programmable Instruments) commands are implemented to free the user from searching through endless user manuals. This framework can be used as stand-alone or can yield the basis for all Matlab measurement applications.

The communication layer enables the user to communicate with any device. Not only the ones that have their SCPI commands already implemented. (You do not need the Matlab Instrument Control Toolbox! ;) )

EXAMPLES

**Use only communication layer (without device layer)**
startupLabDeviceDrivers();
mode = "eth"; % Using Ethernet interface for communication
address = "192.168.1.20"; % IP address of device
port = 1234; % Port (look in your device manual)
labDevice = labDevice('YourDeviceName','eth',address, port)
labDevice.write('*IDN?);
labDevice.read()

**Use with Ethernet**
startupLabDeviceDrivers();
mode="eth"; % Using Ethernet interface for communication
address="192.168.1.20"; % IP address of device
emiTestReceiver=ESPR(mode, address);
emiTestReceiver.setStartFreq(1e3);

**Use with GPIB**
startupLabDeviceDrivers();
mode = "gpib"; % Using GPIB interface for communication
address = 6; % GPIB address of device
sigGen = SMX(mode, address);
sigGen.setFreq(1e7);

**Use with GPIB to Ethernet Interface Converter**
Interface converters require an initialization of the interface converter object first, before initializing the device class.
startupLabDeviceDrivers();
% Initializing interface converter object
mode = 'eth'; % communication mode of converter
address = '192.168.75.42'; % IP address of converter
port = 1234; % Port of converter
interfaceConverter = ProLogix(mode, address, port);
% Pass interface converter to device constructor.
mode = 'eth2gpib'; % communication mode of device
address = 6; % GPIB address of device
sigGen = SMX(mode, interfaceConverter, address);
sigGen.setFreq(1e7);

Supported Devices on device layer (SCPI):

Vector Network Analyzer
Rohde and Schwarz ZVM

E-Field Probes
Radisense

Power Supplies
HP E3631A

Signal Generator
Rigol DG4102
Rohde and Schwarz SMX

EMI Test Receiver
Rohde and Schwarz ESRP

Digital Oscilloscopes
Rohde and Schwarz RTM3000

Misc
Interface Converter for Prologix GPIB to Ethernet Converter

Cite As

Sören Kohnert (2024). Control (GPIB) instruments over ethernet (https://github.com/RFlab-UASAugsburg/labdevice/releases/tag/1.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

@HP_E3631A

@RadiSense_EFieldProbe

@Rigol_DG4102

@RohdeUndSchwarz_ESRP

@RohdeUndSchwarz_RTM3000

@RohdeUndSchwarz_SMX

@RohdeUndSchwarz_ZVM

@UASAugsburg_Stepper

@labDevice

cfg

deviceTypes

doc/doxymatlab/utils

functions

functions/+customEth

functions/+customEth2Gpib

functions/+customEthOverJava

functions/+customGpib

interfaceConverters/@ProLogix_GPIB_ETHERNET

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.