Whenever i changing the widget i am facing the issue of delay in overall performance and user interface while using serial COM
I’m using this PyQt5 code on the Raspberry Pi 4. When I run the code, I receive and plot analog values on the plot_widget via serial communication. If I change the mode or widget, and then attach the respective widget using the stackedWidget method, I face issues with receiving and plotting the data on the plot_widget and delayed in overall response. This is leading to hanging conditions and slow the overall performance like user interface, or an inability to get the analog value from the serial communication. I analysed the RAM memory and found that it’s only taking up to 40-50% on that occasion. Can anyone please help me to resolve these issues