This function limits the input to the low and high limits. The input pins are x, hiLimit, and lowLimit and the output pin is Y.
If the value of input (x) is:
Analog Inputs
| Range | ||||
| Input Name | Low | High | Input Value | Description |
| x | >=- infinity | <+ infinity | unconnected | output set to invalid |
| invalid | output set to invalid | |||
| x<loLimit | output set to loLimit | |||
| loLimit>hiLimit | Limits not enforced ("not enforced" means Y is always set to X.) | |||
| loLimit<x<hiLimit | Output set to x | |||
| x>hiLimit | Output set to hiLimit | |||
| hiLimit | >=- infinity | <+ infinity | unconnected | hiLimit not enforced |
| invalid | hiLimit not enforced | |||
| loLimit | >=- infinity | <+ infinity | unconnected | loLimit not enforced |
| invalid | loLimit not enforced | |||
Output
| Output Name | Range | Description |
| Y | Any floating point value | Y = Limit (x, low limit, hi limit) |