Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A deadband with limits +/- 0.1 in Fortran 90:

deadband_high = 0.1
deadband_low = -0.1

if (input > deadband_high) then  
   output = input-deadband_high  
else if (input < deadband_low) then
   output = input-deadband_low  
else
   output = 0. 
end if