Floating Point
Clamp
Description The Output is fixed to the appropriate clamp value when the input is algebraically outside of the range of the Upper Clamp and Lower Clamp.

Input Output
Lower Clamp < Input < Upper Clamp Input
Input < Lower Clamp Lower Clamp
Input > Upper Clamp Upper Clamp

If the Lower Clamp exceeds the Upper Clamp, the Output will be equal to the Upper Clamp. For use with floating point numbers.

Availability
  • Available only in the dw2xx-v2 series products
  • Requires library: Advanced Math (option -10)
  • Firmware versions 0x210A and later
savvy-SFD Graphic fpClamp
Graphic with Parameters fpClamp

Parameters

Input Input, Read-write, Analog (32-bit IEEE-754 floating point value)
-340E36 to 340E36
Upper Clamp Input, Read-write, Analog (32-bit IEEE-754 floating point value)
-340E36 to 340E36

If the Input exceeds this value, the Output will be set to this value.
Lower Clamp Input, Read-write, Analog (32-bit IEEE-754 floating point value)
-340E36 to 340E36

If the Input is less than this value, the Output will be set to this value.
Output Output, Read-only, Analog (32-bit IEEE-754 floating point value)
-340E36 to 340E36

If the Lower Clamp exceeds the Upper Clamp, the Output will be equal to the Upper Clamp.