ScopeGUI | 虚拟示波器 GUI for https : //github.com/shuai132/ScopeMCU | Frontend Framework library
kandi X-RAY | ScopeGUI Summary
kandi X-RAY | ScopeGUI Summary
Oscilloscope GUI for ScopeMCU. Powered by Dear ImGui and GLFW.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ScopeGUI
ScopeGUI Key Features
ScopeGUI Examples and Code Snippets
sudo apt-get update
sudo apt-get install -y libsdl2-dev
Community Discussions
Trending Discussions on ScopeGUI
QUESTION
I have a class that does data acquisition, i.e. PySession.scope
in a separate thread. I want to plot each scope in a ScopeGUI
, which is based on PyQt5
. Obviously, the GUI's need to be running in the main thread, however I want to be able to invoke another PySession.scope
at any time, that is, the console has to be free to submit new commands.
To conclude: Let's say I start two scopes in parallel, while the data is being collected it should be visualized in two separate instances of the ScopeGUI
. Simultaneously, the console should be free to start an additional scope. What's the best practice so achieve this behavior in Python?
Here's a reproducible example of what I have so far:
...ANSWER
Answered 2020-Aug-20 at 16:50Here's how it's done, no more asyncio
needed:
The update function needs to be adapted as follows. Move the canvas.draw()
from the GUI to the update
routine to avoid flickering of the figure.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ScopeGUI
Ubuntu
Windows(MinGW) Nothing todo
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