Discussion:
How to clear 3d surface plot after restarting vi?
(too old to reply)
estomax
2008-08-07 02:40:05 UTC
Permalink
Hey Guys,
 
I have a problem I am not able to figure out. I have several 3D plots that I am plotting, and I also have an option to turn the plotting off for certain plots when the user doesn't want to see them. Now when i have the VI running, plotting all 3D plots, and then I want to turn some off, i stop the VI, turn those plots off and restart the VI. The problem is that the previous 3D plots remain like they were when i stopped the VI, even after i restart the VI. The plots will only 'reset' when new values write to it, and will not reset at all if i don't write new values to them again (ie. when i disable plotting to those 3D plots).
 
Anyone know how to reset 3D surface plot data whenever the VI is started?
 
thanks in advance!
Marko
mickeyw
2008-08-07 08:40:18 UTC
Permalink
Hi Marko,
This <a href="http://digital.ni.com/public.nsf/allkb/6B82DD2AE39C44ED8625731C00507126?OpenDocument" target="_blank">KB</a> gives some instructions on how to clear 3D plots after resetting.
I hope this is of some assistance to you.
Regards,
estomax
2008-08-08 03:40:05 UTC
Permalink
Hi Mickey,
&nbsp;
thanks for the reply. I tried to use this but in my application it doesnt seem to work, i instead made a case statement that the data goes through and when the case statement is false the array is stopped and instead&nbsp;creates an array of zeroes to continue through. That worked.
&nbsp;
cheers,
Marko
mickeyw
2008-08-08 09:40:10 UTC
Permalink
Ok Marko, I'm glad you managed to get your application working. The case structure method would have been my suggestion if the information in the KB hadnt worked.
I wish you success with the rest of your application.
Regards,

Loading...