Hello everyone!
I am currently writing a program using pyqtgraph that displays strain gauge readings sent over serial from an Arduino. My goal is to visualize the flex in the fuselage of a carbon fibre rocket our university team is building.
Modifying some of the 3d graph example code listed
here, I was able to plot a line. Next I wanted to test that I could update the line live and at an acceptable frame rate. So I created a 3d numpy array, passed it to a GLLinePlotItem via setData() and iteratively updated the numpy array while calling setData() each time. Unfortunately the graph does not seem to update. I've done quite a bit of digging in the documentation, and from what I've read, setData() should automatically update the line on the graph.
My code is below. Let me know if you have any ideas, or can point me to documentation that will help learn how to do this properly. Also it needs to be run with "python3 -i <filename.py>" right now. Thanks!