Week #19 - May 30th to June 5th - Threads and Charts
- jmorra0
- Jun 5, 2023
- 2 min read
This week I completed making separate threads operate in they python GUI so that the CAN signals can be updated in the background and the remaining GUI can function without pausing. The driver screen has been cleaned up a bunch to show the current signals and even rounding off the float values for a clean look.
There is also two buttons added that will start and stop the BUS monitoring, along with a small status indicator that shows the current status of the bus. If it is online, offline, or not able to connect due to a hardware issue.

I also cleaned up the technician window to now control setting up the charting display for charting up to 3 float values on the chart if selected form the list of CAN signals. I plan to expand this to up 4 total float signals if selected and hope to embed the chart into the main window.

There is some additional cleaning up needed to put a legend on the chart and also allow for automatic scaling depending on the largest value. Below is a small video of the current windows working while picking up data off an actual replay of a CAN bus from a test vehicle.
Bryan and I also worked together for a few hours this week getting him up to speed on putting the GUI window together with his three buttons from the Main GUI and also how we will connect the device to the vehicle on the serial port. We also discussed using the 1-wire bus for temperature sensors that will be part of our GPIO option for charting or monitoring. This coming week I hope to incorporate the GPIO portion and finalize the CAN message plotting section and continue testing.
Comments