I have seen examples of this kind of program, but I cannot remember where they are. I wrote the attached program to make a high limit sticky--signal goes high at .7 and stays high until the input goes below .4. I think this program demonstrates a technique so that you can write the code you want.
Jeremy Braden
National Instruments