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 amend the package code, 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.
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.4.tar.gz
.
File metadata
- Download URL: instrulink-1.0.4.tar.gz
- Upload date:
- Size: 63.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c5bb136ce3ff58e02b7686ae7b38abaa0600853ec223ff5166813378a89bfa |
|
MD5 | 4ca93f3d3c3aae1083770db372976393 |
|
BLAKE2b-256 | c87c87ddc806d023bf7c58b82dc060967ace6863d00c5be5eef8725434a67211 |
File details
Details for the file instrulink-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: instrulink-1.0.4-py3-none-any.whl
- Upload date:
- Size: 72.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf6b4cfb2e194c75d258c8bef7f555b5d58360a13936889953416a93c001b59 |
|
MD5 | c2eaa8ff76b122307b0f6867cb823a7f |
|
BLAKE2b-256 | c6a7d893decf2490a0f113969599648db0a90befb4a600038886c08a786b4000 |