02-06-2013 12:18 AM
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
Solved! Go to Solution.
02-06-2013 12:33 AM
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
02-06-2013 12:41 AM
But how to intialize shift register to what you told. I'am attaching the VI with this.
02-06-2013 12:52 AM
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 :
hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
03-01-2013 12:08 AM
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
03-01-2013 08:49 AM
You have multiple false cases. Why can't you be more specific? Your questions are incredibly vague.