Logs data from one-or-more devices for an extended period of time
Project description
psc_datalogger
Provide a GUI interface to allow logging voltages from one to three Agilent 3458A Multimeters. Logging is done at a configurable interval. It can be also be configured to convert voltage readings into a temperature, if a Type K Thermocouple is in use. The data is output in a CSV format.
Installation
The simplest way to install this program is to use pip
to install it directly from this repository:
python -m venv venv
source venv/bin/activate
pip install git+https://github.com/DiamondLightSource/psc-datalogger.git
Then the application can be started:
psc-datalogger
Building Windows Executable
This project can be built and distriubted as a Windows .exe
file. The tool used, pyinstaller
, is included in the Dev dependencies.
To create the application follow these instructions:
git clone https://github.com/DiamondLightSource/psc-datalogger.git
cd psc-datalogger
python -m venv venv
venv\Scripts\activate
pip install .[dev]
pyinstaller --hidden-import pyvisa_py --noconfirm --log-level=WARN --onefile --name psc_datalogger src\psc_datalogger\__main__.py
The application will appear in the dist
folder. Each parameter of the pyinstaller
command line is:
--hidden-import pyvisa_py
- ThePyVISA-py
module is actually stored on disk aspyvisa_py
, so tell the installer to include it explicitly--noconfirm
- Don't warn when about to delete a previous build--log-level=WARN
- Only print warning (or higher) log messages when building. Note a successful build does emit a warning about "sip" module not being found, and another saying "only basenames are supported with ctypes imports". These appear to be harmless.--onefile
- Package the build into a single.exe
file (as opposed to a single directory)--name psc_datalogger
- Give a name to the build application (otherwise it copies the name of the start script)src\psc_datalogger\__main__.py
- Specify the main entry point of the application
Lastly, move the built application to a known distribution location under "S:\Technical\Power_Supplies\Software\Python_datalogger"
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 psc_datalogger-1.0.1.tar.gz
.
File metadata
- Download URL: psc_datalogger-1.0.1.tar.gz
- Upload date:
- Size: 69.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d45fdd5e28d7fe3b386bb235abac966531853f1ed2aa4478de8b90f4fe3523 |
|
MD5 | 366d1d342dfdac30d94371907426aaa3 |
|
BLAKE2b-256 | dacdb2f407682aa88d2fdee8319c2de08b077a692de4153da1f1cfea421711c7 |
File details
Details for the file psc_datalogger-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: psc_datalogger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2304ad3f41dd56d54db4cd3b6915c22650dfaeac5e75b22a21318b336b82d7d5 |
|
MD5 | df0e46de41b7f92bc0e7f9f0247750b6 |
|
BLAKE2b-256 | b1824157b4d5735fe57ed5a992bd510c43e702875bf485224020dfb05306e631 |