Skip to main content

Control instruments in the receiver lab over Ethernet using SCPI commands

Project description

SCPI Lab Instruments

Control instruments in the receiver lab over Ethernet using SCPI commands

Installation

To install via pip:

python3 -m pip install git+https://github.com/Smithsonian/SCPI-Lab-Instruments.git

To use the Keithley module, you also need to install the vxi11 package. This can be installed by:

python3 -m pip install git+https://github.com/python-ivi/python-vxi11.git

Example

from labinstruments import *

# Connect to Hittite signal generator
sg = Hittite('192.168.0.159')
sg.set_power(-40, 'dBm')
sg.set_frequency(5, 'GHz')
sg.power_on()

# Connect to Keithley power supply
ps = Keithley2280('192.168.0.117')
ps.reset()
ps.output_on()
ps.set_voltage_limit(12)
ps.set_voltage(2)
ps.set_current(0.1)
ps.power_on()

References

"System Power Supply Programming Using SCPI Commands" from Keysight

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SCPI-Lab-Instruments, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size SCPI_Lab_Instruments-0.0.1-py3.7.egg (18.8 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size SCPI_Lab_Instruments-0.0.1-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size SCPI Lab Instruments-0.0.1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page