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.

Source Distribution

slave-0.3.3.tar.gz (170.3 kB view hashes)

Uploaded Source

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