Lxi-control
From DorePublicWiki
Lxi-control
The lxi-control application is a command line utility for remote controlling LXI enabled devices. Typical devices include instruments such as power supplies, oscilloscopes, digital multimeters, signal generators, etc.. The devices are controlled by sending SCPI commands via LAN IP network to the devices.
LXI is the successor to GPIB.
History
The lxi-control application is initially developed for remote controlling the PSU instruments in the lab of DoréDevelopment
Specifically these instruments include the following:
- TTi PL155-P
- TTi PL303-P
For more details see http://www.tti-test.com/products-tti/psu/npl-series.htm
Download
Download source code package from here:
Release v1.0.1 - http://dev.doredevelopment.dk/lxi-control/lxi-control-1.0.1.tar.gz
Release v1.0.0 - http://dev.doredevelopment.dk/lxi-control/lxi-control-1.0.0.tar.gz
The source code is also available via the following git repository:
git://dev.doredevelopment.dk/lxi-control
Installation
Please see the INSTALL file included in source.
Usage
Usage: lxi-control [options] Options: --ip <ip> Remote device IP --port <port> Remote device port (default: 9221) --scpi <command> SCPI command --timeout <seconds> Network timeout (default: 4 s) --discover Discover LXI devices on hosts subnet --version Display version --help Display help
Examples
The following usage examples are tested with the following PSU: TTi PL155-P (http://www.tti-test.com).
Get device ID
$ lxi-control --ip 192.168.18.130 --scpi "*IDN?" THURLBY THANDAR, PL155-P, 302868, 2.00 - 1.01
Set voltage level of output channel 1 to 5 volts
$ lxi-control --ip 192.168.18.130 --scpi "V1 5"
Read voltage level of output channel 1
$ lxi-control --ip 192.168.18.130 --scpi "V1?" V1 5.000
Set current limit of output channel 1 to 1 amp
$ lxi-control --ip 192.168.18.130 --scpi "I1 1"
Read current limit of output channel 1
$ lxi-control --ip 192.168.18.130 --scpi "I1?" I1 0.1001
Enable output on channel 1
$ lxi-control --ip 192.168.18.130 --scpi "OP1 1"
Reset device
$ lxi-control --ip 192.168.18.130 --scpi "*RST"
Discover available LXI devices on your network
$ lxi-control --discover Discovering LXI devices on hosts subnet - please wait... Discovered devices: IP 192.168.18.130 - THURLBY THANDAR, PL155-P, 302868, 2.00 - 1.01 IP 192.168.18.132 - THURLBY THANDAR, PL303-P, 302928, 2.00 - 1.01 IP 192.168.18.140 - THURLBY THANDAR, PL155-P, 302869, 2.00 - 1.01
PSU-sample
Psu-sample is a good example on how to use lxi-control to sample and visualize the measured power output from a lxi-enabled PSU.
See psu-sample here
SCPI Specification
The SCPI specification is available here
LXI Specification
More information regarding LXI can be obtained from http://www.lxistandard.org and http://en.wikipedia.org/wiki/LXI
Contact
For bugs and comments please send email to Martin Lund (mgl@doredevelopment.dk).
