Skip to main content

Library with high-level drivers for lab equipment

Project description

Instrumental is a Python-based library for controlling lab hardware like cameras, DAQs, oscilloscopes, spectrometers, and more. It has high-level drivers for instruments from NI, Tektronix, Thorlabs, PCO, Photometrics, Burleigh, and others.

Instrumental’s goal is to make common tasks simple to perform, while still providing the flexibility to perform complex tasks with relative ease. It also makes it easy to mess around with instruments in the shell. For example, to list the available instruments and open one of them:

>>> from instrumental import instrument, list_instruments
>>> paramsets = list_instruments()
>>> paramsets
[<ParamSet[TSI_Camera] serial='05478' number=0>,
 <ParamSet[K10CR1] serial='55000247'>
 <ParamSet[NIDAQ] model='USB-6221 (BNC)' name='Dev1'>]
>>> daq = instrument(paramsets[2])
>>> daq
<instrumental.drivers.daq.ni.NIDAQ at 0xb61...>

If you’re going to be using an instrument repeatedly, save it for later:

>>> daq.save_instrument('myDAQ')

Then you can simply open it by name:

>>> daq = instrument('myDAQ')

Instrumental also bundles in some additional support code, including:

  • A server-client implementation for controlling instruments from remote machines

  • Plotting and curve fitting utilities

  • Utilities for acquiring and organizing data

Instrumental makes use of NumPy, SciPy, Matplotlib, and Pint, a Python units library. It optionally uses PyVISA/VISA and other drivers for interfacing with lab equipment.

For install information, documentation, examples, and more, see our page on ReadTheDocs.

If you would like to cite Instrumental, to give it more visibility to other researchers, you can cite the repository through Zenodo (DOI: 10.5281/zenodo.2556398).

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

Instrumental-lib-0.6.zip (366.3 kB view details)

Uploaded Source

Built Distribution

Instrumental_lib-0.6-py2.py3-none-any.whl (288.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Instrumental-lib-0.6.zip.

File metadata

  • Download URL: Instrumental-lib-0.6.zip
  • Upload date:
  • Size: 366.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.15

File hashes

Hashes for Instrumental-lib-0.6.zip
Algorithm Hash digest
SHA256 dd9793e60441fea6d7bd640051952e7395b6fe3d20dfa29ecb24e96731f70250
MD5 20b31aacfd07dad880f0a4c904528c66
BLAKE2b-256 8af348ad2703bbb6113356580f542babd3d74757bd11b3b9a0c6c2a5f853b777

See more details on using hashes here.

Provenance

File details

Details for the file Instrumental_lib-0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: Instrumental_lib-0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 288.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.15

File hashes

Hashes for Instrumental_lib-0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 50812486005cda1e8fa16593ec1774f6676b3cea3679ef77ac8d954efb294efe
MD5 02bc5de70e639a6c744363f7c3597b59
BLAKE2b-256 6f083783583929187d3f76a09ae8dcf9493f0740148faeabced06fb6bf35c582

See more details on using hashes here.

Provenance

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