04-21-2009 05:33 PM
Hello,
I wanted to ask if there is a way to display the content of the 3D graph at once. I am adding in a for loop new data into it but that process is visible on the graph. I want to see the result not the process of the graph creation. I tried deferring panel updates which doesn't seem to influence the ActiveX control and also tried hiding the graph which causes graph flickering and thus is unacceptable. Is there any other solution?
Thanks
04-22-2009 06:01 AM - edited 04-22-2009 06:02 AM
Off-the-top-of-my-head, the things that I have tried that speed the 3d graph up
1) Set the scale ranges before you plot. Auto-scale forces a redraw.
2) Use a minimum number of points.
3) Use less transparency.
4) Use surface rather than line and line rather than point.
5) Use "NaN" for points you don't need to see.
6) Hide the FP of the VI with the 3d graph while data is being added. Makes a big difference but still can see a delay (but smaller) while screen refreshes.
Ben
04-22-2009 08:05 AM
Hello Ben and thanks a lot for your answer.
I am aware about the points 1-5.
What do you mean by the 6? I tried following sequence:
a) Defer panel updates = true
b) Hide the graph
c) Plot
d) Show the graph
e) Defer panel updates = false
but it caused flickering. I don't mind if it takes longer time I just don't want to se the subresults of the drawing. e.g if I am ploting 20 lines I see 1line then two then three...as I add them. The sequence described above worked fine but it causes annoying flickering of the graph = not acceptable behaviour.
Thanks
04-22-2009 08:11 AM
ceties wrote:...
What do you mean by the 6? ...
Thanks
If you minimize the FP while the loop that is shoving the data into the 3d graph is running it will skip the CPU intensive screen updates for each plot. After you are doing updating the 3d graph you can show your FP again.
1) Set FP minimizied
2) Update the graph
3) Show the FP
Ben
04-22-2009 08:20 AM
Sorry Ben but that is really something annyoing and not acceptable for the user. Just check it.
I really don't understand why the defer panel updates doesn't work for the graph.
04-22-2009 08:29 AM
ceties wrote:Sorry Ben but that is really something annyoing and not acceptable for the user. Just check it.
I really don't understand why the defer panel updates doesn't work for the graph.
I'm not suprised by that but I was just answering the academic quesion as you posted it.
Re "why"
I can only speculate but I beieve it is due to the fact that the 3d graph is actually an CW activeX object running in an ActiveX container, so I am not convinced this issue is unique to the 3d graph but actually due to how Windows implements ActiveX.
Like I said, just specualting (while still trying to help you with the same battle I fight every day).
Ben
04-22-2009 08:36 AM
04-22-2009 08:48 AM
Just a thought.. can you change the scales to something that won't show your data, and then change them to appropriate scales after you draw all the plots?
Chris
04-22-2009 10:01 AM
04-22-2009 10:10 AM