LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calculate mean over length of day with stop start vi

Solved!
Go to solution

Hello Forum Members

 

I'm having a hard time with this one and I don't believe I should be.

 

Some background: I have a vi which runs under a windoze task schedule. The vi will start, look for a connected instrument, and take a single value reading from 10 channels.

The vi will then stop. CAVEAT......The vi is not allowed (expected) to run continously. I must stop after every reading (this part of the process is working fine) and anyway this point is non-arguable and non-negotiable.

 

The vi will repeat this process over a 12 hour period, BUT, the number of readings it will take may not necessarily be the same each 12 hour period, due to a number of factors.

 

The 10 data points from the reading are saved to a text file.

 

This process is repeated every 30 minutes. Now what I am attempting to do is take a running mean of the consecutive readings of each channel, so at the end of a period, I have a mean of all the readings gathered over the reading pewriod of 12 hours.

 

The vi I have created is not giving me the results I expect. I have run the numbers the good old fashion way (pencil and paper) and they don't match the vi results.

 

Does that seem as clear as mud?

 

Could somebody please have a look and tell me where I've gone wrong?

 

Thanks

Ray

Download All
0 Kudos
Message 1 of 2
(2,222 Views)
Solution
Accepted by topic author rayclout

Dear Reader

Thanks anyway, but I solved it myself.

 

Regards

0 Kudos
Message 2 of 2
(2,202 Views)