Metadata-Version: 2.1
Name: SCPI-Lab-Instruments
Version: 0.0.1
Summary: Control instruments in the receiver lab over Ethernet using SCPI commands
Home-page: https://github.com/Smithsonian/SCPI-Lab-Instruments
Author: John Garrett
Author-email: john.garrett@cfa.harvard.edu
License: MIT
Project-URL: Changelog, https://github.com/Smithsonian/SCPI-Lab-Instruments/CHANGES.md
Project-URL: Issue Tracker, https://github.com/Smithsonian/SCPI-Lab-Instruments/issues
Keywords: SCPI,Ethernet,Lab equipment,Signal generator,DC power supply
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Scientific/Engineering
Description-Content-Type: text/markdown
Requires-Dist: sockets

SCPI Lab Instruments
====================

Control instruments in the receiver lab over Ethernet using SCPI commands

Installation
------------

To install via ``pip``:

```bash
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:

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

Example
-------

```python
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"](https://www.keysight.com/us/en/assets/7018-06572/white-papers/5992-3841.pdf) from Keysight


