I have a VI that was made by the director of scary movie, so beware, this VI is a nightmare!...or at least to me it is.
Background:
I have 20 pans and I have a water level sensor that outputs a voltage from 0-5 Volts. By knowing the volume of the pans, I calibrated the output to be in gallons. The real output I need is a volumetric flux, which is gallons per minute per square foot. We are currently achiving this by using a VI that a summer intern made (See attached). It works well, but it is just so messy and hard to clean up and expand. The plan is to have 100 pans total and I don't want to copy paste this code 5 more times!
Questions:
-How can I collect a rate differently? If you notice on the calibration subvi attachement, the rate is calculated manually knowing how fast the loop is going in the main VI. I don't know if this is the best way
-Can I get rid of the shift registers some how?
-Is there a way for me to combine the calibration subVIs so that I don't have to have one subvi for each channel?
Thanks in advanced!