Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
8d6de7f1
Commit
8d6de7f1
authored
Oct 25, 2021
by
Benjamin Mummery
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: plots update to 60Hz?
parent
840a9678
Pipeline
#2810
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
NativeUI.py
NativeUI/NativeUI.py
+7
-6
No files found.
NativeUI/NativeUI.py
View file @
8d6de7f1
...
...
@@ -664,18 +664,19 @@ class NativeUI(HEVClient, QMainWindow):
self
.
expert_handler
.
UpdateExpert
.
connect
(
widget
.
update_value
)
# Plot data and measurements should update on a timer
self
.
plot_timer
=
QTimer
()
self
.
plot_timer
.
setInterval
(
16
)
# just faster than 60Hz
self
.
plot_timer
.
timeout
.
connect
(
self
.
data_handler
.
on_timeout
)
# All other paramters should update on a slower frequncy
self
.
timer
=
QTimer
()
self
.
timer
.
setInterval
(
1000
)
# 1 Hz
for
handler
in
self
.
__payload_handlers
:
self
.
timer
.
timeout
.
connect
(
handler
.
on_timeout
)
if
handler
not
in
[
self
.
data_handler
,
self
.
alarm_handler
]:
self
.
timer
.
timeout
.
connect
(
handler
.
on_timeout
)
self
.
timer
.
start
()
# Plot data and measurements should update on a timer
self
.
plot_timer
=
QTimer
()
self
.
plot_timer
.
setInterval
(
16
)
# just faster than 60Hz
self
.
plot_timer
.
timeout
.
connect
(
self
.
data_handler
.
on_timeout
)
# Localisation needs to update widgets
# localised_widgets = [
# self.widgets.normal_measurements,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment