MATLAB: Do I get the error for slope-bias FIs when using a Stateflow Chart with fixed point data type

stateflow

I get the following error after changed the data type to fixdt(1,16,0.001,0) from single for the inputs to the chart.
Math is only supported for slope-bias FIs when the SumMode is SpecifyPrecision. 
The error is occurred in the following transition line.
[(Input1 – Input2) == 0]
 

Best Answer

In order to resolve the error, use fi object in the Stateflow Chart which is using MATALB action language.
Here is the modified line to use fi object in the transition line.
[(fi(Input1,1,16,0.001,0) - fi(Input2,1,16,0.001,0)) == 0]