02-19-2016 03:57 AM
Dear all,
I have a labview program which reads data in a excel files and use XY graph to plot some data.
Now every time I read a new excel file the XY graph keep its history: it shows the data from previous files.
I looked a bit to the forum to understand how to clear the history, so I did : Create property node-> Value
Then I put this value to 0, at the beginig of the application.
But the XY graph still keeps its history!
How can I clear this history after reading each file?
Thank you and bests regards
02-19-2016 04:04 AM
You forgot to post your code!
An XY graph has no history (only charts do), each time you write to the graph, it updates the entire plot. That means that your VI is holding the history from the previous run somewhere. Look for feedback nodes or uninitialised shift registers.
02-19-2016 08:17 AM
02-19-2016 09:00 AM
@Hatef.fouladi wrote:
check if you do not wire start of your shift registers into empty array
this means any time you restore previous data into graph again
What you wrote is difficult to understand. I guess you wanted to write "Check whether an empty array is wired to the shift register at initialisation, or not." Anyway, Sam_Sharp has already pointed out to check this: "Look for feedback nodes or uninitialised shift registers."
Why would you repeat the same?
No new info in a post reply creates only "noise" (and generates more, like this very reply 🙂 ).
02-19-2016 09:06 AM
02-19-2016 09:25 AM - edited 02-19-2016 09:29 AM
Write an empty array to the shift registers at the start of each run.
The data from the last run is then cleared at the start of the next run.