Skip to main content

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


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.11.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

xtralien-2.11.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file xtralien-2.11.1.tar.gz.

File metadata

  • Download URL: xtralien-2.11.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for xtralien-2.11.1.tar.gz
Algorithm Hash digest
SHA256 ced7b35ee752959afe7dd9ced5ac5504fb321416d9d25810f44fcfad47e3e468
MD5 b78837dbb1703295e89bd5b9c7d71307
BLAKE2b-256 7129f9a2f4475d94a8489d968b7ef2de8aa0b93081f18ce72f7d8da7deea9a6d

See more details on using hashes here.

File details

Details for the file xtralien-2.11.1-py3-none-any.whl.

File metadata

  • Download URL: xtralien-2.11.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for xtralien-2.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b613488459376fbdeae88a624c7146b5ada837b73433d2d9390d48ba19ac96e1
MD5 67c4dead4743bb57aada1a95ea92e2f9
BLAKE2b-256 f363b7d35a7f6d36183a6992e8424ab13cd764425f5f5bd96ebf15b404c8576f

See more details on using hashes here.

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