VisPy Realtime Data Tutorial (Part 5) - Updating data with multithreading and timers

preview_player
Показать описание
This is the fifth video in the tutorial series on using VisPy in a PyQt5 GUI application. The end goal is to make an application that visualizes a synthetic realtime data source. This video adds a one shot timer inside the data generation running in a QThread background thread to trigger each iteration of data generation as a new task/event in the event loop. This is an alternative to the purely Timer-based approach in Part 3 and the for-loop based approach in Part 4. The threading used in this example allows us to have two event loops (one for data generation and one for GUI/drawing events) just like in Part 4, but also allows better communication and event handling in the background thread by running smaller individual iteration tasks. This implementation is in my opinion the best of both worlds if your data generation can support running one iteration at a time.

Chapters:
0:00 Intro and Review
0:40 Overview of timers in background threads
4:22 Update DataSource
8:40 Update Signals
10:22 Run example
12:04 Review
13:14 Outro
Рекомендации по теме
Комментарии
Автор

This series was really well made thank you!

cafeciaojoe
join shbcf.ru