Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

average online data

hi,
 i new in labview,i hope u can help me to settle my problem...i don't know how to get the average of 5 input pressure data in online system because my pressure input data is not constant,that why i try to get the average data..then the average data will be used with the other data such as temperature and enthalpy to plot the graph and insert to the table..hope u can let me know how to get the average data.

Here i have attached my system..

tq
shakir
0 Kudos
Message 1 of 7
(4,407 Views)
Hi Shakir,

Are you using LabVIEW Realtime for this? You can just use the shift register to average your values. You can also store your values into an array, use the array size and add array elements function to get the average value. You can also use the mean function under Mathetics -> Probability and Statistics -> Mean under the functions palette.

Good luck!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(4,387 Views)
hai sir,

       i have done your suggestion about how to get the average of 5 online data by use the shift register...i hope u can check for me,i'm not sure anymore about what i did,i do not have any reference to refer about my problem..here i have attached for u what i have done.

tq sir...
0 Kudos
Message 3 of 7
(4,378 Views)
Hi SHakir,

I was not able to open your program without a broken arror since you were missing a lot of VIs. I did take a look at your array addition. You have not wired the number of iterations to a particular number. The problem with this is that it will keep running until you hit the stop button. This can sometimes result in garabage values being added/calculated. Please refer to my attach vi. I have set up a condition where the while loop will terminate if has done 5 iterations or if the stop button is hit.
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(4,363 Views)

hi sir,

i hope u can send to me your attachment again because i used labview version 8.2.1...

 

 

thank you sir....

0 Kudos
Message 5 of 7
(4,356 Views)
Here is the file in 8.2.1
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 6 of 7
(4,350 Views)
tq sir...


          i will use your suggestion to get the average data at lab this monday..if i have a problem i will ask u again..







thank you,,


shakir
0 Kudos
Message 7 of 7
(4,344 Views)