Open slartz42 opened 1 year ago
Actually now that I look at this closer, there might be some kind of division error somewhere causing this. With a sampling rate of 300 Hz and a connector width of 1000 points, everything works fine. When I change the sampling rate to 301 Hz, it stops working properly. If I force the slice width to be an integer, it works again.
Hopefully this isn't an issue with my code, but that's also very possible
Thanks for your input again. I briefly tested it. There is definetly something wrong. Most likely LiveAxis display region calculation. I set sampling rate to 401 and plot rate to 1Hz. I didn't see any line. Then I zoomed out and saw plot progressing correctly at 1Hz, but autorange was not properly working. Therefore there was nothing plotted. Right now, I'm quite busy with othert stuff. But hopefully will find some time soon to debug and fix this issue.
Roll on tick seems to be an issue for me as well. I can see a single vertical line that appears top be massively zoomed out (this includes the X axis timeline as well). It takes a lot of zooming in to see the trace as it is sampled.
Hello,
I hope this issue's topic suits my question. I would kindly request clarification on the functionality of the 'roll_on_tick
' parameter. I'm currently working on developing a Python GUI for multi-channel live plotting (displaying multiple line charts) of real-time acquired data.
For these charts, I'm able to set the following parameters:
I'm encountering issues while setting this temporal window on the chart, particularly when manipulating the 'roll_on_tick' parameter, resulting in inconsistent outcomes. This might be due to my limited experience in PyQt and live plotting.
Hence, I have a theoretical rather than technical question: What exactly does 'roll_on_tick' entail? How is this parameter correlated with others such as 'update_rate,' 'bin_width,' and 'time_span'?
For a more detailed overview of the problem I'm facing, I've elaborated on Stack Overflow at: link.
Thank you very much.
Hello,
I spoke too soon before, it looks like there are still some issues with roll_on_tick. This time however, I took the time to write some code for you to reproduce the error, I made this program as similar as I could to how my data acquisition program actually functions.
When the sampling rate is increased higher than the plot rate, the roll on tick stops working properly. I believe this is because the appended array size is getting larger and larger and ticks are not getting counted properly.
When self.sampling_rate is set to 15 Hz, everything works as it should. When self.sampling_rate is increased to 200 Hz or over, it starts to noticeably lag:
Let me know if this sample code doesn't work for you and I can adjust it as needed