Skip to main content

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

  1. individual files in neoginstruments will be seperate instruments
  2. folders designate interchangeable instruments with common apis
    1. Each folder will result in automatic selection of a instrument
    2. Each folder will use and document an API
  3. Each valid instruments file must have a
    1. name
    2. hwid: array of valid hardware IDs (for linux)
      1. use lsusb to get them. IE:"0403:FAF0"
      2. use "software" to create a virtual instrument
    3. instrument class
      1. Must accept the port as its only argument in __init__. You can get the serial with port.serial_number

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


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.3.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

NeogiInstruments-2.3.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file NeogiInstruments-2.3.0.tar.gz.

File metadata

  • Download URL: NeogiInstruments-2.3.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.12.15-zen1-1-zen

File hashes

Hashes for NeogiInstruments-2.3.0.tar.gz
Algorithm Hash digest
SHA256 f3c096fb9b782caa6f730528157792deb1fcb225ff8b1af4e910268e23f409a0
MD5 35675bfcc87f88e4cbc7580fcd78cd2d
BLAKE2b-256 60a4cd8490ed90268aaa3901c6e6e81005001e74f4ab9cb1a1027ec356d0b91a

See more details on using hashes here.

File details

Details for the file NeogiInstruments-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: NeogiInstruments-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.12.15-zen1-1-zen

File hashes

Hashes for NeogiInstruments-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d2b44fda91fa473522030cb2d66076e3e442ddaf5aa628a7e647ba51e8b51a
MD5 7fc706a0ff996ce7fd2a5a81beff988b
BLAKE2b-256 4ba3c06918c7111fafdfd6a54bbd98de8906d42cb45119b85a873c6f6150dd5e

See more details on using hashes here.

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