LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset graph after each run

Solved!
Go to solution

Hello,

 

In the attached VI file, I am trying to collect data at interverals (in secs) and display it in a graph that updates after each iteration.  However, I would like the graph to be reset just before I start a new run of the program.  In the current state, after the program ends, the graph just seems to append data and continues on.  I would like to have the x-axis as the time.  In the current state of the program, I wait 1sec, take data and so on.  I would like a plot of the data vs time.  So in the attached VI, the graph should end at 20secs.  

 

I would sincerely appreciate any help in figuring out my dilema.  I am running LabView 8.2.

 

Thanks for all your help and time.

 

hiNi.

0 Kudos
Message 1 of 3
(6,126 Views)
You are writing to a chart and not a graph and in order to clear it, you write to it's History property. Just like the example (Help>Find Examples) 'How to Clear Charts & Graphs' show you. In the example finder, just enter 'Charts' into the search field. While you are there, look at the example called Real-Time Chart (which also uses the History property to clear the chart).
0 Kudos
Message 2 of 3
(6,122 Views)
Solution
Accepted by topic author hiNI

Like so

test.PNG

Andy Chang
National Instruments
Message 3 of 3
(6,117 Views)