A library for controlling Ossila's Source Measure Unit
Project description
pyxtralien
This module is a simple interface to Ossila's Source Measure Unit.
Description
Xtralien is an open-source project from the Engineers at Ossila to allow control of their equipment easily and Pythonically. It is based on CLOI, the Command Language for Ossila Instruments.
Installation
Using pip
:
pip install xtralien
If you want to control the equipment using USB you will also need to install pySerial.
Usage
Below is a simple example of taking a measurement using the library.
import time
from xtralien import Device
com_port = 'com5'
channel = 'smu1'
# Connect to the Source Measure Unit using USB
with Device(com_port) as SMU:
# Turn on SMU 1
SMU[channel].set.enabled(1, response=0)
# Set voltage, measure voltage and current
voltage, current = SMU[channel].oneshot(set_v)[0]
# Print measured voltage and current
print(f'V: {voltage} V; I: {current} A')
# Reset output voltage and turn off SMU 1
SMU[channel].set.voltage(0, response=0)
time.sleep(0.1)
SMU[channel].set.enabled(False, response=0)
For more documentation examples see our programming guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xtralien-2.10.0.tar.gz
(12.6 kB
view hashes)
Built Distribution
xtralien-2.10.0-py3-none-any.whl
(14.1 kB
view hashes)
Close
Hashes for xtralien-2.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d018809380ba72bb9ba04c4ab161ec84269f1e986e7487b12b7a2fca467d9d12 |
|
MD5 | 25d447f883f28a8b1d64e661c55e9bb4 |
|
BLAKE2b-256 | 8e6e5fd1376f0ea13bb63cafb566cd53cb70aeccc6cbadebe9168075bb44da34 |