LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How long does it take to update graphs?

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?



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 1 of 4
(3,379 Views)

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). 



------------------------------------------------------------------------------------------------------
Kudos are (always) welcome for the good post. 🙂
Message 2 of 4
(3,366 Views)

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.  Smiley Sad



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 3 of 4
(3,354 Views)

@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.  Smiley Sad


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.


"Should be" isn't "Is" -Jay
Message 4 of 4
(3,340 Views)