LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting a Chart or Graph.

There is a process which runs for 5 hours.I Need to plot the values (Double 64 bit precision) to a Graph or a Chart. Plotting the Signals for 5 hours is easy but in the process there are 5 steps and and for each step I Need to plot the last 60 seconds. I am using the collector vi to plot the last 60 seconds for each step. The Chart is 5 hours and I have to scroll a lot to see the last secs for each step. is it possible to plot the Chart only for those 60 secs for the 5 steps and rest of the Chart is blank. In other words, I Need to trim the Chart ehich has only the last 60 sec values.

0 Kudos
Message 1 of 3
(2,363 Views)

You mention a "Graph or a Chart". A graph does not have any history associated with it, so whatever was wired in last is what it will display. A chart does have history, and also has different behaviors associated with hitting the x-axis maximum (scrolling, starting back on left hand side, etc.). So, I think a chart is definitely what you want here.

 

You should be able to adjust the x-axis so that it automatically scrolls to the most recent 60 seconds. You can set the max to be the min + 60 seconds at the start of your application. 

0 Kudos
Message 2 of 3
(2,336 Views)

I completely agree with Gregory -- it is easy to set up a Chart that scrolls and always shows the last 60 seconds of data that was written to it.

 

However, in your original Post, you mentioned 5 steps, and seemed to imply that you want to see the last 60 seconds of 5 different (time?) processes.  It is not clear what "the code you failed to post so we could understand what you are trying to do" is trying to do -- are there 5 processes that run simultaneously (and you only need the preceding minute(s) of data for each of them), do they run sequentially (and you only need the last minute of each), or something else?  Do you need both a "long-term graph" and a "short-term chart"?  Do you want a "multi-scale Chart" that allows you to switch between "the last minute, the last 10 minutes, the last hour, the last 5 hours"?  [This actually exists and is doable -- I have the reference to how to construct this somewhere, and have done it, myself ...].

 

If you need more input on this question, post your VI (or VIs -- I recommend compressing the folder holding the LabVIEW Project you are using and attaching the resulting .ZIP file).

 

Bob Schor

0 Kudos
Message 3 of 3
(2,314 Views)