08-20-2012 11:44 AM
I have three Multiplot XY Graphs that get updated 2-3 at a time. They can all theoretically have up to 21 plots with 80 data points in each. How long will this take to update the graphs, and will it take long enough to warrant me giving the process its own separate loop? The graphs are updated several times during a fairly time-sensitive test, or can be updated on user prompt. Will they cause a significant delay?
08-20-2012
11:57 AM
- last edited on
04-30-2025
09:59 PM
by
Content Cleaner
I think this article addresses the issue you are facing. Apart from what has been suggested in the article, I would recommend using ques and producer consumer kind of architecture to spped up. (Basically processing the data in producer and displaying it in consumer).
08-20-2012 12:19 PM
Thank you. That's basically what I'm doing now, but I was hoping I'd be able to get rid of one of my consumer loops! Alas, it seems its presence is still required. ![]()
08-20-2012 01:35 PM
@James Mamakos wrote:
Thank you. That's basically what I'm doing now, but I was hoping I'd be able to get rid of one of my consumer loops! Alas, it seems its presence is still required.
Two points.
Never get rid of a queued consumer. WHY: it allows better readability and maintainability without duplicating data
Use Defer panel updates, write all the data, undefer panel updates about every 100-200 ms writigng to a graphs transfer buffer is reasonably quick but updating the FP display involves a bit more processing and must consume the UI Thread.