ronboom
Member
This is a program I wrote for testing fuel level sender units that we manufacture. This is a life test that runs for 100K cycles and records up to 10 'out of tolerance' readings for each UUT. The engineers believe that I have made the test too sensitive. They would prefer that a failure in only recorded if the consecutive out of tolerance measurements are recorded for each UUT. The problem is that I can only record one reading for each out of tolerance event -- until the analog input goes back within range and then back out (which would be a true-false-true histogram the way I have the LIM set up). The counter only increments if a false to true transition is made; therefore, if a UUT does go bad, and stays bad, I will only get one measurement. I thought about using the scan toggle bit -- but I'm not sure if that'll work. Is there any way I can make this thing record one bad reading (which should be the average of the 3) only if the reading is out of tolerance for 3 consecutive scans? Then repeat this until 10 out of tolerance readings are recorded?