Python package to interface diverse laboratory instruments
Project description
instrulink
This python package provides built-in classes to interface diverse laboratory instruments, including:
- waveform generators: Rigol DG 1022Z (
RigolDG1022Z
) - oscilloscopes: B&K Precision 2555 (
BK2555
), Rigol DS 1054Z (RigolDS1054Z
) - micro-manipulators: Sutter Instruments MP-285A (
SutterMP285A
) - infrared cameras: FLIR cameras (
Camera
) - acquisition systems: NI DAQmx for pulse triggers
Software dependencies
To interface VISA instruments (i.e., waveforms generators and oscilloscopes), you will need to:
- Download and install IVI Compliance Package 21.0 When installing, opt to include .NET Adapters and COM adapters as well (these are not selected by default)
- Download and install the NI Package Manager. Through the NI package manager, also install the NI-VISA Driver.
To interface Rigol instruments specifically, you will also need to download and install the associated Rigol driver
To interface FLIR cameras, you will need to download and install the FlyCapture SDK
You will also need to install Python 3.6
(for compliance with FlyCapture SDK), preferably as part of an environment manager such as Anaconda.
Installation
This package can be directly installed from PyPI:
pip install instrulink
However, if you wish to edit the code base, you can also clone this repo and install it locally as an editable package:
git clone https://github.com/tjjlemaire/instrulink.git
cd instrulink
pip install -e .
Usage
Connecting to instruments
Instruments can be easily connected to via generic grab_camera
, grab_generator
, grab_oscilloscope
and grab_manipulator
functions. By default, these functions will automatically detect the first available instrument connected to the PC. Optionally, you can also provide an instrument key
to connect to a specific model type (e.g. grab_osciloscope(key='bk')
to specifically connect to a B&K Precision oscilloscope).
Using instruments
Example scripts are located in the /scripts
subfolder.
Authors
This package is written and maintained by Theo Lemaire.
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
Built Distribution
File details
Details for the file instrulink-1.0.5.tar.gz
.
File metadata
- Download URL: instrulink-1.0.5.tar.gz
- Upload date:
- Size: 63.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f54731cdb7c990733ecb9d56036114e85e41eefe60645f7c2c0e547e37c08b1 |
|
MD5 | 7595f49338a63e82893fb9c05bf0a696 |
|
BLAKE2b-256 | 7abbd8127780bf16f163d3bbe7bdb0e13d27dc9a9a4d0a4ea43e577b9a389cae |
File details
Details for the file instrulink-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: instrulink-1.0.5-py3-none-any.whl
- Upload date:
- Size: 72.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db42efde3b3813635e3df8af3cd591c15c53100bbe2dcf3d3f828549ed534d3e |
|
MD5 | 5e42f86ce9adfafdba8f83a83f26bf57 |
|
BLAKE2b-256 | fcb76fe902d3cf113aef87313727be65f96e8f651f1a845cca01ccb39256771c |