LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i set the chart to show me the results for the last 3 minutes?

I am simulating a data aquiring of 2 pressures and I don't know how to set the chart/graph to show me the results for the last 3 minutes.

Download All
0 Kudos
Message 1 of 8
(2,323 Views)

You can set the chart history size to 3 minutes (number of points calculated from the sampling rate), then autoscale the x axis.

 

( do you really need to [open,read,close] the ini file with each iteration of the loop? Maybe do it once before the loop?)

 

Also, if you open the data file outside the loop and keep it open during the run, you can simply write at the current position to append. It is also much more efficient to keep the file open.

0 Kudos
Message 2 of 8
(2,310 Views)

I'm new in the domain, so don't judge me please xD. This is a project for faculty, i'm doing it this semester only, I won't see LabView again till next year...

0 Kudos
Message 3 of 8
(2,305 Views)

There wasn't any judment, just some quick pointers how things could be improved.

 

Is your problem solved?

0 Kudos
Message 4 of 8
(2,298 Views)

So I need 180k points, but i'm still trying to figure out where to change that setting....

0 Kudos
Message 5 of 8
(2,291 Views)

At edit time, right-click the chart and set the "chart history lenght".

 

However 180k points seems excessive (remember, your chart is only about 200 pixels wide!). What kind of time resolution do you really need? (Sorry, I cannot look at your express VI (NO DAQ installed here), so I cannot tell how it is configured.) What is the loop rate of your while loop?

0 Kudos
Message 6 of 8
(2,288 Views)

The default, 1000

0 Kudos
Message 7 of 8
(2,284 Views)

@TIoan wrote:

The default, 1000


What are the units? How many points do you grab with each read?

What time resolution do you need? How fast canthe pressure possibly change?

 

You could get 1000 points with each read and only send the average to the chart every second. Now the chart would only need 180 points.

0 Kudos
Message 8 of 8
(2,275 Views)