LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear 3d surface plot after restarting vi?

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
0 Kudos
Message 1 of 4
(3,073 Views)

Hi Marko,

This KB gives some instructions on how to clear 3D plots after resetting.

I hope this is of some assistance to you.

Regards,

Mike W
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 2 of 4
(3,056 Views)
Hi Mickey,
 
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 creates an array of zeroes to continue through. That worked.
 
cheers,
Marko
0 Kudos
Message 3 of 4
(3,035 Views)

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,

Mike W
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 4 of 4
(3,021 Views)