LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute node slows down VI

My VI shows about 5000 curves, consiting of 2 points each. If I want to change the colour of the lines this is fast until some 100 lines have been processed. Thereafter the time needed per update is suddenly  increased to about 1s per line, and causing about 2000s runtime. I'm then able to watch how to colour changes from line to line...
Basically would it be enough to disable the automatic colour assingment and have all traces black only and with exactly the same attributes. Is there any possibility to do that really fast, e.g. with writing to one single attribute?

Marco

mailto:Marco.Mailand@gmail.com
0 Kudos
Message 1 of 2
(2,524 Views)
There is not an "All Plots" at the same time property as far as color etc.  However, you can speed your application up drastically if you "defer panel updates" which is a panel property.  So get the panel ref you wnat and then defer the updates, set all the colors and properties one at a time, and then when you are all done set Defer to false.  This makes LabVIEW wait to redraw and you should notice a huge change.
0 Kudos
Message 2 of 2
(2,512 Views)