A module for the NQRduck program (a simple python script™) for automatic Tuning and Matching (TM) system used for magnetic resonance spectroscopy.
Project description
NQRduck Module: nqrduck-autotm
A module for the nqrduck project. This module is used to automatically tune and match mechanical and electrical probe coils.
The module is used as a graphical user interface for the ATM-system. The ATM-system consists of a C++ program running on the ESP32 microcontroller. The NQRduck autotm module communicates with the ESP32 microcontroller using the USB interface.
For mechanically tunable probe coils stepper motors for Tuning and Matching are used. For electrically tunable probe coils varactor diodes are used. The system is able to output a Tuning and Matching voltage in a range from 0 to 5V.
Additionally, the system can measure the $S_{11}$ parameter of the probe coil over a frequency range.
Installation
Requirements
Dependencies are handled via the pyproject.toml file.
Setup
To install the module you need the NQRduck core. You can find the installation instructions for the NQRduck core here.
Ideally you should install the module in a virtual environment. You can create a virtual environment by running the following command in the terminal:
python -m venv nqrduck
# Activate the virtual environment
. nqrduck/bin/activate
You can install this module and the dependencies by running the following command in the terminal while the virtual environment is activated and you are in the root directory of this module:
pip install .
Usage
The module is used together with the ATM-system. Connect the ATM-system to the PC running the NQRduck program. You can connect to the ATM-system using the 'Tuning and Matching' tab in the NQRduck program.
- a.) The Connection settings for connecting to the ATM-system.
- b.) The 'Tuning and Matching' tab. Here you can control the ATM-system and switch between electrically and mechanically tunable probe coils.
- c.) The $S_{11}$ tab. Here you can measure the $S_{11}$ parameter of the probe coil over a frequency range.
- d.) The 'Info Box'. Here you can see the current status of the ATM-system.
- e.) The $S_{11}$ plot. Here you can see the measured $S_{11}$ parameter of the probe coil over a frequency range.
Notes
- The active user needs to be in the correct group to use serial ports. For example 'uucp' in Arch Linux and 'dialout' in Ubuntu.
License
This project is licensed under the MIT License - see the LICENSE file for details
Contributing
If you're interested in contributing to the project, start by checking out our nqrduck-module template. To contribute to existing modules, please first open an issue in the respective module repository to discuss your ideas or report bugs.
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 nqrduck_autotm-0.0.4.tar.gz
.
File metadata
- Download URL: nqrduck_autotm-0.0.4.tar.gz
- Upload date:
- Size: 475.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697c2f4e1cd3307bd509c8bf9ce66780a7d8600f11568727e4b5bf9a9941eb3d |
|
MD5 | a4529e113318047e7de4c5dc8e49d52e |
|
BLAKE2b-256 | b85fdd06de1f42f63324a448c454b3d274e7fb7f138bd28df87f3b55c66a2ee3 |
File details
Details for the file nqrduck_autotm-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: nqrduck_autotm-0.0.4-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c333a0718719e7cf86122794d6697d5a0f25d4ca5f544f3c0bf0b82fe7c64f5c |
|
MD5 | 5af07d3e7941bd06071becfa62f808f1 |
|
BLAKE2b-256 | 297d7b3802a79afcfdf256b265973ea3b0926b2b046a6b0114d99d1354f276fb |