LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My XY graph keeps its history

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

 

0 Kudos
Message 1 of 6
(3,435 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 6
(3,430 Views)
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
0 Kudos
Message 3 of 6
(3,395 Views)

@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 🙂 ).

0 Kudos
Message 4 of 6
(3,372 Views)
If you are using the Express XY graph, this does retain the history unless a True is wired to the reset input. Attaching your code is essential. Read the Getting Started thread.

http://forums.ni.com/t5/Getting-Started-on-the-NI/bd-p/gettingstarted
Message 5 of 6
(3,363 Views)

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.

 

xy.PNG

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 6
(3,347 Views)