Skip to main content

A package to control PhoQis Labs various pieces of measurement equipment.

Project description

Measurement Software

By Mary Grace D'Avanzo

Overview

Measurement Software is a Python package for controlling and automating a variety of laboratory measurement instruments. It provides a unified interface for experiment setup, data acquisition, and instrument management, enabling users to streamline workflows and automate repetitive tasks. The package version can be downloaded by running pip install -i https://test.pypi.org/simple/ measurement-instruments

Features

  • Modular instrument control via SCPI commands
  • Easy integration of new instruments with guided automated coding pipeline
  • Reuseable experiments
  • Data auto-saving and management
  • Network manager for multi-instrument setups
  • Opens and closes supporting programs automatically

Instruments Supported

  • Vector Network Analyzer (Copper Mountain)
  • Oscilloscope (Rigol)
  • Spectrum Analyzer (Signal Hound)
  • RF Switch (Vasta)
  • DC Power Supply (Siglent)
  • Signal Generator (Signal Core)
  • Digital Attenuator (Vanuix)
  • Flow Meter (Keyence)
  • Additional instruments can be added using provided jupyter notebook AddANewInstrument.ipynb

How to Use

Each instrument contains two components: helper and a main. Helper consists of user made automated functions while the most commonly used commands are kept in the main class. Within the main classes, functions are categorized by what primary command they fall under.

Along with the instrument classes the api contains the classes NetworkHandler for connecting and managing instrument connections and DataHandler for saving and processing raw instrument data.

Getting Started

If you plan to just use the library and not modify it in any way, instead of cloning the repository go the following address https://test.pypi.org/project/measurement-instruments/ and use the pip install at link. See [insert github link] for a template experiment on how to use this library. Full documentation can be found at [insert link].

If this is a new PC, ensure NI0VISA is downloaded along with the following instrument specfic applications for all instruments you plan to use:

Download the appropriate visa for your system on the National Instrument website: NI-VISA Download

If you plan to use the following instruments you'll need to download the corresponding software:

  1. Clone the repository
    git clone <https://github.com/phoqis-lab/Measurement_Software>

  2. Install dependencies
    See requirements.txt for required Python packages.

  3. Add a new instrument
    Follow the instructions in Instruments/AddANewInstrument.ipynb to integrate new hardware. You may also modify any of the helper .py files to add prebuilt subroutines you may want to frequencyly call in multiple experiments.

  4. Updating public library instance Official PyPi distirbution instructions can be found here: https://packaging.python.org/en/latest/tutorials/packaging-projects/

First log on to the PyPi account. The PhoQis account can be found in the lab's notion on the measurement software page.

First ensure build is upgraded and then use it to build the python library: python3 -m pip install --upgrade build python3 -m build

Then install

  1. Updating the public documentation

Contributing

Contributions are welcome! Please update the read me if you add a new instrument.

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

phoqis_measurement_instruments-1.0.0.tar.gz (153.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phoqis_measurement_instruments-1.0.0-py3-none-any.whl (151.1 kB view details)

Uploaded Python 3

File details

Details for the file phoqis_measurement_instruments-1.0.0.tar.gz.

File metadata

File hashes

Hashes for phoqis_measurement_instruments-1.0.0.tar.gz
Algorithm Hash digest
SHA256 99e3897cb1337945d210d08b5a41fa564c9ce567cf7770c8a646da26b40213bb
MD5 0d00f58ee6c91a3250b86cc830ce7e3d
BLAKE2b-256 bb2b321ce2185b5305de1a0abbea32e2acdd6cda51273560f09f33e8abd9b5d7

See more details on using hashes here.

File details

Details for the file phoqis_measurement_instruments-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for phoqis_measurement_instruments-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71b6dfc4a6db1da43d9aabb36ba442426d08d23e41d70107a46e61edee6c85c2
MD5 8fb6f48ac18be4fef2245fe9ba9a7998
BLAKE2b-256 3141c91033a783857ed8c886654a56af14336fbdd3c9abee11d55edfdc6814f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page