10-23-2017 07:02 AM
Hello everyone,
I need to save 10 measures of temperature (from 3 sensors) each 1 minute. After that, I need the average. I'm reading the temperatures, but I don't know how to do that. (Build table? array?).
Do you have a similar example?
Best Regards,
Jose S.
10-23-2017 07:29 AM
Hi Corzu,
I need to save 10 measures of temperature (from 3 sensors) each 1 minute.
So you want to read a new sample each 6s, and after 10 iterations of your loop you want to save those 10 samples (per channel) to a file?
What is the problem here? What have you tried so far?
After that, I need the average. I'm reading the temperatures, but I don't know how to do that. (Build table? array?).
Well, you should already build an array when reading those 10 samples per minute.
What is the problem to calculate the average of those samples?
(Do you want to average per channel or for all 3 channels?)
When you have problems with your VI you should also attach your VI!
10-23-2017 07:51 AM
Below is shown a very simple way to do it.
You probably need to do a little of training and/or reading on LabVIEW.
Good luck
10-24-2017 05:56 AM
Thanks for your answers.
The problem is that I want to save the data (in this example random generation) in a table, but all the measures goes to te same row, and overwrite the old data, and I need to sabe it in separates rows (one row for each lecture)
Thanks
10-24-2017 06:25 AM
Hi Corzu,
in this case you should learn the basics of LabVIEW, here especially to use shift registers to store data in loops!
(This is one of the most basic LabVIEW features and taught in the free beginner courses.)
10-24-2017 06:29 AM
You need to use the build array function and a shift register (see below).