I have a model which has an input signal with data type "single". This signal has the initial value which is same as maximum value. (10.3 for this case). When I evaluate the model, I get the error stating that quantized initial value is greater than maximum value.
- Below is screenshot of definition of signal and error I get during model update.
I believe the cause of the error is that maximum value is evaluated with data type "double" while initial value is evaluated with data type "single", and 10.3 with single precision is greater than 10.3 with double precision as shown below.
As data dictionary only accepts finite real double scalar value for maximum and minimum value, I was not able to find good solution for the problem.
- How can I work around this problem?
- Is there any method to set maximum and minimum value of the signal with datatype single?
I have attached sample model and associated data dictionary which reproduces the problem. The problem happens for "sample_input" signal.
Best Answer