Code covered by the BSD License
Cole Stephens (view profile)
02 Aug 2004
20 Oct 2010)
Prevent a signal from growing beyond a certain value.
Watch this File
Ever have a signal that represented an angle? Once the angle exceeded 360 degrees, it just kept on growing...even though it really only makes sense to see an angle between 0 and 360 degrees.
That was the basis for creating this block, but it's certainly not limited to angles.
While concise, this function would be much improved if it could work for both max and min limits. As it is, negative input values aren't handled very well.
Added License Info.