Skip to content

Commit

Permalink
Text versus Plot display improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
uutzinger committed Jul 2, 2024
1 parent 9a074aa commit 0730efc
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 67 deletions.
9 changes: 9 additions & 0 deletions SerialUI.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
Categories=Utility;
Name=Serial UI
Exec=/home/uutzinger/Documents/GitHub/SerialUI/run.sh
Terminal=false
Icon=/home/uutzinger/Documents/GitHub/SerialUI/assets/serial_48.png
Path=/home/uutzinger/Documents/GitHub/SerialUI
2 changes: 2 additions & 0 deletions helpers/Qgraph_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def on_pushButton_StartStop(self):
Start timer
"""
if self.ui.pushButton_ChartStartStop.text() == "Start":
# We want to start plotting
if self.serialUI.textLineTerminator == '':
self.logger.log(logging.ERROR, "[{}]: Plotting of of raw data not yet supported".format(int(QThread.currentThreadId())))
return
Expand All @@ -362,6 +363,7 @@ def on_pushButton_StartStop(self):
self.logger.log(logging.INFO, "[{}]: Start plotting".format(int(QThread.currentThreadId())))
self.ui.statusBar().showMessage('Chart update started.', 2000)
else:
# We want to stop plotting
self.ChartTimer.stop()
self.ui.pushButton_ChartStartStop.setText("Start")
try:
Expand Down
Loading

0 comments on commit 0730efc

Please sign in to comment.