-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roll on tick #31
Comments
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. |
Hello, I hope this issue's topic suits my question. I would kindly request clarification on the functionality of the 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
The text was updated successfully, but these errors were encountered: