取消
顯示結果 
搜尋替代 
您的意思是: 

silver graph performance (apparent serious 2011 flaw)

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

 

 

 

1 條訊息(共 9 條)
4,967 檢視

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

2 條訊息(共 9 條)
4,963 檢視

Nice to know高興表情

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
3 條訊息(共 9 條)
4,956 檢視

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 

0 積分
4 條訊息(共 9 條)
4,953 檢視

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. 

 

0 積分
5 條訊息(共 9 條)
4,946 檢視

You can edit the Silver controls in vi.lib\silver_ctls, so you can turn of the anti-aliasing for newly-placed graphs.


Christina Rogers
Principal Product Owner, LabVIEW R&D
6 條訊息(共 9 條)
4,925 檢視

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

0 積分
7 條訊息(共 9 條)
4,909 檢視

Where do you find the "anti-aliasing" option for silver graphs?

 

Thanks,

Ron

0 積分
8 條訊息(共 9 條)
4,677 檢視

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

0 積分
9 條訊息(共 9 條)
4,666 檢視