From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding mean of data

In this labview loob it gives more than 10000 data in 10 second and writes it in a text file, I want to find the mean or average in this loop , how can I ?

0 Kudos
Message 1 of 3
(2,265 Views)

Use Mean to reduce the array to a single point, and use Mean PtByPt to average the results of each loob together.

0 Kudos
Message 2 of 3
(2,260 Views)

We cannot answer the question by just looking at your picture. Too many ambiguities.

 

  • How is the DAQ assistant configured? Do you get a single point with each iteration? A fixed number of points? A variable number of points?
  • How is the file write configured? Are you sure the file IO does not randomly slow your loop rate? What determines the loop rate? Are you sure it is computer independent?
  • Using the elapsed time express VI to terminate the loops seems a poor choice. Currently the system is over-determined, How do you know you get exactly 10000 points in 10 seconds? Don't you simply want to stop after 10000 points? Typically AI is taken at a defined rate, but you seem simply trying to wing it somehow?
0 Kudos
Message 3 of 3
(2,236 Views)