01-25-2014 01:06 PM
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.
01-25-2014 01:49 PM - edited 01-25-2014 01:49 PM
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.
01-25-2014 01:52 PM
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...
01-25-2014 01:56 PM
There wasn't any judment, just some quick pointers how things could be improved.
Is your problem solved?
01-25-2014 02:01 PM
So I need 180k points, but i'm still trying to figure out where to change that setting....
01-25-2014 02:05 PM
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?
01-25-2014 02:06 PM
The default, 1000
01-25-2014 02:24 PM - edited 01-25-2014 02:24 PM
@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.