09-03-2007 07:58 AM
09-03-2007 08:11 AM
Have you looked at the "Producer/Consumer" structure?
In LabVIEW, select from the top menu "File > New" (NOT New VI!! simply "New"). You'll have quite a few templates to choose from. Have a look at "Producer/Consumer Design Pattern (Data)".
The top loop can be used to acquire data (at one rate). The data can go into a buffer to be processed by the second loop (at a different rate). You must make sure that you do not get a buffer overflow..
09-03-2007 09:10 AM
09-10-2007 07:28 AM
Hi Bart,
thank's for the reaction. I adjusted my VI to your model and now it works fine.
However, I have some problems with writing the measurements to an Excel file. The attached VI writes every second all the values nicely to an Excel file but that's not the way I want it. Every second, I want to write down the first 7 values (Time, mean, maximum and minimum of the last 10 measurements; like the VI does right now) and when the program stops, I want to write the last 6 values (summary at the end of the total mean, maximum and minimum) in the same file. Is this possible? And how can I add a header to each column?
with kind regards,
Kevin