LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear graph

Hello,
 
I have a another question concerning the clearing graph option. I'm not able to find a simple solution to this problem. Right now, the vi  clear correctly the chart while the program is running. However, if I push on the stop button, the "clear chart " button doesn't work anymore. And actually, it's normal by looking at the structure of the vi. I would like to be able to push on the "Stop" button and after decide if I want to clear or not the graph by pushing on the "clear chart " button. What could be a simple way to solve this problem? I tried with a sequence execution control but I'm not able to connect the data to the graph in the two sequence. Any hints???
 
Thanks
 
Marc    
0 Kudos
Message 1 of 5
(2,860 Views)
Once your press the stop button, the VI stops. It will no longer run code or react to buttons on the FP.
 
You simply need to keep the VI running without doing any acquisition. A state machine architecture would probably solve your problem. A finished VI should always run.
 
To clear the chart when the VI is stopped, right-click on in and select "Data operations...Clear Chart".
 
If you have LabVIEW 8.0, you probably could make an Xcontrol containing a chart and a "clear" button and it will work even if the VI is in edit mode.
Message 2 of 5
(2,850 Views)
If you just want an option to Clear or Not to Clear after pressing Stop, but before stopping, put a dialog box and case structure between the Stop button and the conditional terminal in the loop.

Lynn
Message 3 of 5
(2,847 Views)
Very simply, no buttons will work when the program is stopped. The easiest thing to do might be to put the simulation inside a case statement and have another button that start and stops that.
0 Kudos
Message 4 of 5
(2,843 Views)

Hello

Lynn, the vi is perfect. Thanks a lot.

Marc

 

 

0 Kudos
Message 5 of 5
(2,832 Views)