Hi Aubrey,
To prevent the subVI from stalling your parent VI, the normal solution is to put it inside it's own seperate loop outside any main loop in the parent VI. Two loops next to each other that are not connected, will run in parallel independantly of each other.
You can also implement a functionality like the one from the attached "Average4.vi". Using a subVI like this to calculate the average of the last 4 values, you can just give it the latest measurement, and it will return an average of the last four measurements.
Best regards,
Philip C.
National Instruments
- Philip Courtois, Thinkbot Solutions