Integer Change Only
File:TArduinoIntegerChangeOnly.png
Summary
Outputs a new integer value only when the change from the previous value exceeds a set threshold.
Description
The **Integer Change Only** component compares each new input value on **In** with the previously stored value. If the absolute difference is greater than or equal to the **Threshold** property, the new value is passed to **Out** and the **Difference** pin outputs the computed change. If the change is smaller than the threshold, the output remains unchanged.
Diagram:
Categories
- File:TArduinoIntegerCategory.png Category Integer – Value comparison and filtering
Properties
- Threshold – Integer – the minimum change required for the value to be passed through.
Pins
- In – Integer input stream.
- Out – Integer output (updated only when change ≥ **Threshold**).
- Difference – Integer output of the change amount from the last accepted value.