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.

Source Distribution

SCPI Lab Instruments-0.0.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distributions

SCPI_Lab_Instruments-0.0.1-py3.7.egg (18.8 kB view hashes)

Uploaded Source

SCPI_Lab_Instruments-0.0.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page