First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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