This example shows how to increase and decrease the stored integer value of a signal by one.
The Increment Stored Integer block increases the stored integer value of the input signal by one.
The Decrement Stored Integer block decreases the stored integer value of the input signal by one.
If you change the value of the input signal to 127 (the maximum value representable by an
int8 data type), incrementing the stored integer value by one causes an overflow. Because overflows in the Increment and Decrement Stored Integer blocks always wrap, the Increment Stored Integer block will output a value of -128.