A UI for controlling the Analog Discovery Series
Project description
ADScopeControl: Python Project for Digilent Analog Devices USB Oscilloscope Control
PyADScopeControl (Analog Discovery Scopes) is a Python project developed to control Digilent's Analog Discovery Essentials USB oscilloscopes. The following models are fully supported, however only the Analog Discovery 2 has been tested for use:
- Analog Discovery 2 (Tested)
- Analog Discovery 3 (Not Tested)
- Analog Discovery Studio (Not Tested)
- Digital Discovery (Not Tested)
Installation and Usage
Installation
Using pip and PyPI
pip install PyADScopeControl
Using pip and the repository
pip install git+https://github.com/agentsmith29/PyADScopeControl.git
Cloning from source
Clone the repository:
https://github.com/agentsmith29/PyADScopeControl.git
Install dependencies:
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment on Windows and GitBash
. .venv/bin/activate
# Activate the virtual environment on Windows and cmd
# .venv\Scripts\activate
# Activate the virtual environment on Linux/MacOS
# source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
Usage
Run the main script:
Direct Usage
If you just want to run the script directly, you can use the following command:
python examples/main.py
Using the package
If you want to use the package in your own code, you can import the package and use it as follows: Package documentation for the config can be found here (confPy6).
from PyADScopeControl import ADScopeControl
# The config class, that stores the configuration for the scope
# using the confPy6 package (https://github.com/agentsmith29/confPy6).
conf = CaptDevice.Config()
# Enable the log
conf.internal_log_enabled = False
# --- Create the model, controller, and view. ---
# Pass the config to the model.
model = CaptDevice.Model(conf)
# Pass the model and None to the controller.
# The second argument start_capture_flag (here set to None) is a multiprocessing.Value that
# triggers the scope.
# This can be used to create a shared value between processes (e.g. a trigger by another process)
controller = CaptDevice.Controller(
model,
None # start_capture_flag: multiprocessing.Value, triggers the scope
)
# Create the view
window = CaptDevice.View(model, controller)
# Show the window
window.show()
An example how to use this package in conjunction with another package can be found in the PySacherECLControl repository.
GUI
Use the graphical interface to adjust laser parameters, monitor data, and control the laser. Refer to the user manual or documentation for detailed instructions on specific operations and functionalities.
Contributing
Contributions to Laser Control are welcome! If you have suggestions for improvements, encounter any issues, or would like to add new features, please feel free to open an issue or submit a pull request on the GitHub repository.
Citing
This project is part of the Software FlexSensor, which has been published under DOI 10.2139/ssrn.4828876.
Please cite it correctly.
Schmidt, Christoph and Hinum-Wagner, Jakob Wilhelm and Klambauer, Reinhard and Bergmann, Alexander, Flexsensor: Automated Measurement Software for Rapid Photonic Circuits Capturing. Available at SSRN: https://ssrn.com/abstract=4828876 or http://dx.doi.org/10.2139/ssrn.4828876
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
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
Built Distribution
File details
Details for the file pyadscopecontrol-1.2.0.tar.gz
.
File metadata
- Download URL: pyadscopecontrol-1.2.0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fccf41563890be687c4116e294bc3e8ad3b2fc59ab7ab05744052937511d848 |
|
MD5 | 5da179cddc764b97349fcbde142be301 |
|
BLAKE2b-256 | 0c05dffcea7b774b08477b08bd43a6cb15394a36a46e0ac97927eb99008ae383 |
Provenance
The following attestation bundles were made for pyadscopecontrol-1.2.0.tar.gz
:
Publisher:
python-publish.yml
on agentsmith29/PyADScopeControl
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pyadscopecontrol-1.2.0.tar.gz
- Subject digest:
8fccf41563890be687c4116e294bc3e8ad3b2fc59ab7ab05744052937511d848
- Sigstore transparency entry: 150799156
- Sigstore integration time:
- Predicate type:
File details
Details for the file pyadscopecontrol-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyadscopecontrol-1.2.0-py3-none-any.whl
- Upload date:
- Size: 641.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b211ab40d9c29b72920a1b1221c94aecb017747dc17d8ede884f3f5c1a4f38fe |
|
MD5 | 43dcb850cd396ff99f468109e3b52b5f |
|
BLAKE2b-256 | 1553c53ded7773b486e1e6a07cad37c364ecaf9c43776a055c3c1a460037ed46 |
Provenance
The following attestation bundles were made for pyadscopecontrol-1.2.0-py3-none-any.whl
:
Publisher:
python-publish.yml
on agentsmith29/PyADScopeControl
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pyadscopecontrol-1.2.0-py3-none-any.whl
- Subject digest:
b211ab40d9c29b72920a1b1221c94aecb017747dc17d8ede884f3f5c1a4f38fe
- Sigstore transparency entry: 150799158
- Sigstore integration time:
- Predicate type: