LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save measures

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.

0 Kudos
Message 1 of 6
(2,845 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,832 Views)

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

Example_VI_BD.png

Marc Dubois
Message 3 of 6
(2,824 Views)

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

 

Capturatabla.JPG

 

0 Kudos
Message 4 of 6
(2,783 Views)

Hi Corzu,

 

in this case you should learn the basics of LabVIEW, here especially to use shift registers to store data in loops!

check.png

(This is one of the most basic LabVIEW features and taught in the free beginner courses.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(2,774 Views)

You need to use the build array function and a shift register (see below).

table2_BD.png

Marc Dubois
Message 6 of 6
(2,769 Views)