Skip to main content

A lightweight python package to simplify the communication with several scientific instruments.

Project description

The main goal of slave is to make it easier to communicate with scientific instruments. Slave tries to ease the implementation of new instruments and comes with a variety of ready-to-use implementations.

A simple measurement script, using pyvisa for the GPIB connection, might look like:

import time
import visa
from slave.sr830 import SR830

# construct and initialize a SR830 instrument with a GPIB connection on
# channel 8.
lockin = SR830(visa.instrument('GPIB::08'))
lockin.reserve = 'high' # Set the dynamic reserve to `high`.
lockin.time_constant = 3 # Set the time constant to 3s.

# measure the x value 60 times and wait 1s between each measurement.
for i in range(60):
    print lockin.x
    time.sleep(1) # delay for 1s.

Requirements

  • Python 2.6 or higher
  • Sphinx (optional, to build the documentation)
  • distribute (Python 3.x)

Installation

To install Slave, simply type

python setup.py install

Note To install Slave in Python 3.x distribute is required.

Documentation

Slave is fully documented. Both the latest stable as well as the develop documentations are available online. To build the documentation manually, e.g. the html documentation, navigate into the /doc/ subfolder and execute make html.

Licensing

You should have received a copy of the GNU General Public License along with Slave; see the file COPYING.

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 slave, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size slave-0.3.3.tar.gz (170.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page