InstrumentKit | Python package for interacting with laboratory equipment
kandi X-RAY | InstrumentKit Summary
kandi X-RAY | InstrumentKit Summary
Python package for interacting with laboratory equipment over various buses.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new device from a URI .
- Load instruments from a yaml file .
- Setup axes .
- Creates a unitful property .
- Creates an enum property .
- Creates a new unitful property .
- Query a single packet .
- Read the waveform .
- Change measurement mode .
- Return true if the controller is enabled .
InstrumentKit Key Features
InstrumentKit Examples and Code Snippets
Community Discussions
Trending Discussions on InstrumentKit
QUESTION
I am trying to make a user interface for a SRS DG645. I'm very new to PyQt5 (and let's face the truth - I am also very fresh with Python), and I was trying to do a small test menu to try and get some functionality - and understand how this works.
I was sucessfully able to initiate and close connection to the intrument via the 'Initialize' and 'Close' buttons.
What I wanted to do next was to be able to set delays. For that, I created two entrys - entry1 and entry2 - which would provide the 'channel' (an integer) and the 'timing' (a float).
For the script to work, I need to associate the 'Write Values' button with the a function which was described previously in the file - set_delay() - which requires a tuple of (channel,timing) in order to be sucessfully executed.
I am completely oblivious on how to implement the code for this button, as I don't understand how I can get the arguments passed by the entry boxes and insert them into the required dg.set_value() function.
I am aware of this answer: How to pass arguments to functions by the click of button in PyQt? by I believe it does not fully answer my present question
Any help would be greatly appreciated!
PS: A big thank you to Trappisch and Casagrande for making their code public in Git!
Please find below the MWE for my implementation
...ANSWER
Answered 2021-Aug-27 at 13:39Qt signals don't need to be directly connected to the "final" function that has to be called.
For simple cases, you can still use lambdas as the answers to the linked post suggest:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install InstrumentKit
You can use InstrumentKit like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page