LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D graph slow drawing

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

LV 2011, Win7
0 Kudos
Message 1 of 27
(6,164 Views)

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

Message Edited by Ben on 04-22-2009 06:02 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 27
(6,134 Views)

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

LV 2011, Win7
0 Kudos
Message 3 of 27
(6,124 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 27
(6,121 Views)

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.

LV 2011, Win7
0 Kudos
Message 5 of 27
(6,118 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 27
(6,113 Views)
...and I fully appreciate your speculations 😉
LV 2011, Win7
0 Kudos
Message 7 of 27
(6,110 Views)

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

0 Kudos
Message 8 of 27
(6,100 Views)
Can you collect all of the data in the for loop, and move the graphing outside the for loop so it only draws once? 
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 27
(6,086 Views)
I can but I do not know how to plot the data all at once. Do you know?
LV 2011, Win7
0 Kudos
Message 10 of 27
(6,083 Views)