Skip to main content

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

Metadata

Release files for neogiinstruments 2.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neogiinstruments 2.6.1
File Size Uploaded
NeogiInstruments-2.6.1.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neogiinstruments 2.6.1
File Interpreter ABI Platform
NeogiInstruments-2.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / NeogiInstruments-2.6.1.tar.gz

Download URL NeogiInstruments-2.6.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5e283e43251a86186c66837eda59b56c31f13acd497e99e1315f9e8e7d0e6f3f
BLAKE2b-256 checksum
How to use checksums
0c66167ad9d37351284ad807ce057edf6f6d3f05912c9317bbca600023220d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.13.9-zen1-1-zen

Release files / NeogiInstruments-2.6.1-py3-none-any.whl

Download URL NeogiInstruments-2.6.1-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aed282c2e50258a7e9d05e316d69d22c26a0a992b25fbdb755f689373b831887
BLAKE2b-256 checksum
How to use checksums
f9128d3516caaee55308d890114fa0494e343c32de55fe4faf11edfbb913ba32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.13.9-zen1-1-zen

Release history Release notifications | RSS feed

This release

2.6.1 This release

2 release files

2.6.0

2 release files

2.5.8

2 release files

2.5.7

2 release files

2.5.6

2 release files

2.5.5

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.13

2 release files

2.4.12

2 release files

2.4.11

2 release files

2.4.9

2 release files

2.4.8

2 release files

2.4.7

2 release files

2.4.6

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page