LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why and Why do the old data in a 'graph or char' plot out with the new plottet data.?

Hi to all
 
I'm trying to plot the same data out on two Plots, A chart and a graph.
 
The first chart must plot the data out with a Y-scale different from the other graphs y scale.
Both graphs must have variable scales in both Y- and X- scale, so I can't run from using the proberty nodes right?
 
The thing that is killing me now is that as soon I use the proberty nodes, I get old plottet data on the graph and chart, until the chart history length is full.
And there I got a problem if i use a greater history buffer. 
I must use a greater history buffer coz when finnish measuring and plotting data out, I need to be able of scrolling back to all the measurements.!
 
I don't know.. meaby it is better, writing the measuremts in a file, and then plot the data to a chart out from the file?
 
Isn't it a better solution ?? or what to suppose!
 
Regards Zamzam
 
HFZ
0 Kudos
Message 1 of 7
(2,778 Views)
I'm still a bit confused as to what you're actually trying to accomplish but try this and see if it doesn't work better.
Message 2 of 7
(2,775 Views)
Here's another example that might be closer. This mod only plots data when the Boolean is true.
Message 3 of 7
(2,768 Views)

 Thanks for help Dennis,

But The problem isn'tsolved,

For you to understand,

I got this program, that measures data and plot them out to one chart and one graph I suppose, I cant see what. coz i cant open the Vi,its secured.

The x-scales there are set as default  from 0-200. and the Y- scales are also set to some default value, and the scales are also set to be variable, so the user can scale as he wants. but that program doesn't have the x- scroll panel. so the data that are beeing plotted just sweep into the charts, while the x-scales still shows from 0-200. that mean 200 samples always unless the user changes them! 

So my task is to make the same application (program) and add some x-scrolls to the charts, so when stopping the application, the user can scroll back and se all the measuremts from the start.

I maked(with help from the guys in here!) another program that writes all the data to a file, and then when the file is written and closed, by a open file button i can read and plot all the data to a chart. no problem with that.

But as the program I got, i need while writing the data to a file, plot the data out to two (charts or graphs).

I hope u got a bit of what i'm searching.

regards Zamzam  

HFZ
0 Kudos
Message 4 of 7
(2,766 Views)

Thank you Dennis

I suppose that I can make my application a bit different then.

Meaby i have to change the way the scales are beeing showed in, so by that I can do it by my way.

Regards Zamzam 

HFZ
0 Kudos
Message 5 of 7
(2,750 Views)
I wondered if it is possible to make both graphs sweep or scroll the plottet data, only for the defined samples. I make it with a chart, coz i need to scroll back to the start of the measurements when ex. stopping the application.
what about clearing the chart, is it possible to do it when using graphs, coz using the graph and not the chart, the clear chart in charts is not available in graph.
Is it the possible to clear the graph, by initializing the max value in the x-scale to  min x- range to the graphs.
 what to do? it is not working , coz the x-range min. value outside the clear graph case is again initialized to its old value. 
take a look at the example 
 
zamzam
HFZ
0 Kudos
Message 6 of 7
(2,740 Views)
Done , It can only be done by using a chart, !
like Dennis did it!
 
 
HFZ
0 Kudos
Message 7 of 7
(2,733 Views)