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 serial number as its only argument in __init__

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


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

Uploaded Source

Built Distribution

NeogiInstruments-2.0.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: NeogiInstruments-2.0.1.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

Hashes for NeogiInstruments-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b21eb04892193d1379861bf79bf20e599dcffd2234a721e52e410cf640bcad4e
MD5 681680de82f4e04e7caa51c72eef9a8f
BLAKE2b-256 e0e99a00a8f41cc8fe04b37f50c07a009538f02079c0c722c38e1f46d6c99dd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: NeogiInstruments-2.0.1-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

Hashes for NeogiInstruments-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1599a8392ca6fa7f43f6326661eb3463db3259e933afadd6f7e14718522871fa
MD5 478f0b9a950df897f1fd3d49139620fb
BLAKE2b-256 e75c037b76c9be5cadd4781fcff934dbcbda312f953f3a76d746dad668e93896

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