Mismatch Data Types Fixed-Point Tool Simulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am converting a Simulink model from floating-point to fixed-point. One of the subsystems in this model contains a Matlab Function.
The tool correctly proposes and applies the fixed-point types but when I simulate the model it tells me that there is a data mismatch after a signal enters in a unit delay block whose output goes into the Matlab Function. Basically the signal coming out from the delay block is a fixed-point one (and that is right) but then the Matlab function expects a double type. However, the input of the functione is correctly defined as a fixed-point type in the code I get after the proposal.
I'm attaching a couple of screenshots. I know it is a long question, hopefully someone can help me.
Thanks,
Matteo
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290766/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290767/image.png)
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Fixed Point en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!