Communication and helper functions for lab equipment
Project description
Instruments
Communication and helper functions for lab equipment
If you're reading this, this is a WIP new class-based system of autodetecing instruments and exposing common APIs
Creating instruments
- individual files in neoginstruments will be seperate instruments
- folders designate interchangeable instruments with common apis
- Each folder will result in automatic selection of a instrument
- Each folder will use and document an API
- Each valid instruments file must have a
- name
- hwid: array of valid hardware IDs (for linux)
- use lsusb to get them. IE:"0403:FAF0"
- use "software" to create a virtual instrument
- instrument class
- Must accept the serial number as its only argument in
__init__
- Must accept the serial number as its only argument in
Using instruments
Example:
import neogiinstruments
rotator = neogiinstruments.rotator("rotator1") #creates rotator named rotator1
rotator.instrument_selected = '55114654 - ttyUSB7 - K10CR1'
rotator.instrument.home() #homes the rotator
rotator.update_to_serial()
Each module will return its respective instrument. Multiple distinct verisons of the same instrument can exist.
You can either manually change instrument_selected or use .view()
to make an interactive GUI.
All functions of each instrument are avalible through the .instrument
sub-object.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
NeogiInstruments-2.0.2.tar.gz
(17.5 kB
view details)
Built Distribution
File details
Details for the file NeogiInstruments-2.0.2.tar.gz
.
File metadata
- Download URL: NeogiInstruments-2.0.2.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.12.14-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a310626dad50febc96ee7b2e0a0c5de6977870132f10fd08dc181d1c60d94522 |
|
MD5 | 42deb478f40e85f7aa298b80ef694a29 |
|
BLAKE2b-256 | db0c9606ffa4d03a565699a0389c07fe965627d1ad75b5fe9a37168b9d83ac24 |
File details
Details for the file NeogiInstruments-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: NeogiInstruments-2.0.2-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.12.14-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb937540d775f630b0ed1ae8a98de8a87e0575202b8345ec2fc95dedeefcc49c |
|
MD5 | a951c199488154d4ca0f8c3eb69f52c2 |
|
BLAKE2b-256 | 6f0cf634a4750d64c4d0c08f45812bb78313ffdf8cc4b217ebb340c1b349dbe8 |