LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear data from XY graph for another trial

Solved!
Go to solution

I have a XY graph of motor counts versus  intensity. I used shift registers for building Array VI. After terminating the program once using stop terminal. And I cleared the graph. When I start taking measurement second time, same data repeats before the first one. So how can  clear it. Please reply 

0 Kudos
Message 1 of 6
(5,472 Views)

Are you really using an XY Graph or is it a chart?

 

If it's actually an XY Graph, you have to initialinze the data in your shift register to only display in your graph the data form the current measurement, if it's a chart you have to create a "history data" property node on the chart and connect and empty array to it to clear the chart's history.

 

It will be easier to help you if you show your code 😉

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 6
(5,467 Views)

But how to intialize shift register to what you told. I'am attaching the VI with this.

0 Kudos
Message 3 of 6
(5,460 Views)
Solution
Accepted by topic author perumpadapu

That's one very quick way of doing it : initialize your shift registers.

What happens in your VI is that after the VI stops (when you clic the stop button) the data that is in the shift registers (your X and Y arrays) stays in memory, so if you run again the VI it will add data into those arrays.

 

To initialize your shift registers you need to connect en empty array to them before the while loop. Like this :

 

Clipboard01.png

 

hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 6
(5,458 Views)

On doubt is there, how can I continue a graph from the point it stops. I 'am attaching a VI can you please sent me some advise for this. Hre in this VI when I put false case the graph should stop. When It becomes again true it should continue from the point where it stopped how is it possible. Can Yoyu please sent me a reply

0 Kudos
Message 5 of 6
(5,393 Views)

You have multiple false cases. Why can't you be more specific? Your questions are incredibly vague.

0 Kudos
Message 6 of 6
(5,382 Views)