01-15-2015 04:02 PM
I have a loop that is spitting out a single number each time. I need to be able to take a running average of the value. That is easy with a while loop and shift registers but what I need is to be able to reset it and also change the number of averages. So when the operator says he wants some unknown amount of averaging the loop starts and with each iteration it gives me an output of the average so far and then when the full number of averages is reached it resets and starts again.
01-15-2015 04:24 PM
This should give you some ideas to get started. It uses the loop "i" as the data values.
Lynn
01-15-2015 09:04 PM
01-16-2015 06:41 AM
@mikeporter wrote:
Isn't there a pt-by-pt VI that does exactly this?
Mike...
Like Mean PtByPt?
01-16-2015 07:40 AM
01-20-2015 09:40 AM
Morning and thanks for the feedback. I had already searched the forums and tried that pt-to-pt vi and did not get the results I wanted. I will mock it up again when I get a chance. I don't remember what it was not doing from my requirements but will pass it on when I do.