Implements a discontinuity at zero with linear behavior elsewhere. The larger data type you wire to input or offset determines the polymorphic instance LabVIEW uses.
Use the pull-down menu to select an instance of this VI.

![]() |
gain (x 2^8) is a scaled integer representing the gain to apply to input. The upper 8 bits represent the signed integer portion of the gain and the lower 8 bits represent the fractional portion. The default value, x0100, corresponds to a gain of unity.
gain (x 2^8) = [actual gain x 2^8], where brackets represent rounding to the nearest integer. |
![]() |
input is the data point the VI processes. |
![]() |
offset is an integer added to input * gain (x 2^8) to determine the value of output. The VI only applies offset when input does not equal zero. |
![]() |
output is the processed data.
output = input * gain(x 2^8) + offset for input > 0 output = input * gain(x 2^8) – offset for input < 0 output = 0 for input = 0 |

![]() |
gain (x 2^8) is a scaled integer representing the gain to apply to input. The upper 8 bits represent the signed integer portion of the gain and the lower 8 bits represent the fractional portion. The default value, x0100, corresponds to a gain of unity.
gain (x 2^8) = [actual gain x 2^8], where brackets represent rounding to the nearest integer. |
![]() |
input is the data point the VI processes. |
![]() |
offset is an integer added to input * gain (x 2^8) to determine the value of output. The VI only applies offset when input does not equal zero. |
![]() |
output is the processed data.
output = input * gain(x 2^8) + offset for input > 0 output = input * gain(x 2^8) – offset for input < 0 output = 0 for input = 0 |

![]() |
gain (x 2^8) is a scaled integer representing the gain to apply to input. The upper 8 bits represent the signed integer portion of the gain and the lower 8 bits represent the fractional portion. The default value, x0100, corresponds to a gain of unity.
gain (x 2^8) = [actual gain x 2^8], where brackets represent rounding to the nearest integer. |
![]() |
input is the data point the VI processes. |
![]() |
offset is an integer added to input * gain (x 2^8) to determine the value of output. The VI only applies offset when input does not equal zero. |
![]() |
output is the processed data.
output = input * gain(x 2^8) + offset for input > 0 output = input * gain(x 2^8) – offset for input < 0 output = 0 for input = 0 |
If the result exceeds the output data type, the result saturates, returning the maximum value representable by the data type with the same sign as the actual result.
The VI rounds the multiplication result to negative infinity before adding the offset.