09-14-2011 11:32 PM
I noticed that cpu usage was quite high for some VIs and ended up finding out with simple comparison benchmarks (using performance and memory test) that a VI with the new silver graph runs about 25 times slower than a vi with the old, uh, modern graph at default graph size. For a graph widened to cover a wide screen, it decreased to about 190 times slower, a horrible crawl. For the test I just generated random numbers put into a 2000 element 1D array to be graphed (couldn't attach the test VIs for some reason).
The silver graph looks nice, but what in the world is going on here?
Jesse
09-14-2011 11:57 PM
Ha ha, I just found the answer. The silver graph has "anti-aliased" turned on by default, which makes it amazingly slow/cpu intensive. I think it was a mistake to make that the default setting for the Labview 2011 style, but at least here's a heads up.
Jesse
09-15-2011 12:24 AM
Nice to know
09-15-2011 12:27 AM
I'm working with some kids, and was wondering if anyone might know a way to change the graph default settings, so that it's not necessary to always remember to turn off anti-alias every time a new graph is placed?
Thanks,
Jesse
09-15-2011 01:19 AM
I customized the control palette to only show the modern. I also added panel.background=B3B3B3 to the labview.ini file so that the modern graph color matches well with front panel color, as before.
09-15-2011 09:23 AM
You can edit the Silver controls in vi.lib\silver_ctls, so you can turn of the anti-aliasing for newly-placed graphs.
09-15-2011 01:01 PM
Thanks Christina, that works perfectly. I just hope other people realize this. Also, it appears the black graph background looks better when anti-aliasing is not used.
Jesse
01-30-2012 12:50 PM
Where do you find the "anti-aliasing" option for silver graphs?
Thanks,
Ron
01-30-2012 01:34 PM
Hi Ron, right click on the "plot 0" button, or more specifically the little zig-zag graphic, at the upper right of the graph, and you'll see the choice of anti-aliasing that can be uncheckmarked.
Jesse