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 port as its only argument in
__init__
. You can get the serial with port.serial_number
- Must accept the port 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.
Utilities
you can call port_table() to print a port table
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
Built Distribution
File details
Details for the file NeogiInstruments-2.2.6.tar.gz
.
File metadata
- Download URL: NeogiInstruments-2.2.6.tar.gz
- Upload date:
- Size: 10.0 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 | 148913c3febdbf8c1c3783dab8d556987b27aa2e9a6f77e12924782d5f84dd61 |
|
MD5 | 2255a68012f183340b1a5332e1020665 |
|
BLAKE2b-256 | c6e786edc6eb92d21d26066e0bc5cca91ff975c64951ac179547f00e9183c60f |
File details
Details for the file NeogiInstruments-2.2.6-py3-none-any.whl
.
File metadata
- Download URL: NeogiInstruments-2.2.6-py3-none-any.whl
- Upload date:
- Size: 13.1 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 | 6944d3fe676e55f698609f5700b954281b91fc1a562f814a3e65950be3ced52f |
|
MD5 | 8f2e1011cfe0387c8d34d408e21e2af9 |
|
BLAKE2b-256 | 6e0a15e828b298ea2095ff99908937410812fd920477c4fa3e7a2d236d23f787 |