About This File
What's New in Version 2.0 See changelog
Probably the most elementary hysteresis detector ever coded in LabVIEW, this program uses an in-range Comparator to determine whether the input parameter falls within a range specified by the inner and outer limits.
The data valid output is only True when the measured parameter traverses from within the inner limit to the outer limit but is invalid when traversing from outside the outer limit until it is back within the inner limit.
Single upper limits are provided as a Negator to used to supply an equivalent negative lower limit to the in-range comparator, as this sub-routine was used to check sensor drift on a referenced (zeroed) alignment device. The simplicity and beauty of this software routine is that the output of the Comparator is used to determine whether the inner or outer limits are active at any one time.
The code can of course be modified to provide both positive or negative limits as required.