필터 지우기
필터 지우기

Getting Warning: Cannot construct fi object; converting to double when running Simulink model

조회 수: 2 (최근 30일)
I have a simulink model which whenever I run it spits out the following warning:
"Warning: Cannot construct fi object; converting to double.
> In sim2fi (line 30)"
This model used to contain a Stateflow diagram with a parameter and one output of the fixdt(0,8,6) data type.
The Stateflow diagram has been removed and since then whenever I run the model I get the warning above.
Any help would be appreciated.
Thanks,
Alex.

채택된 답변

Pablo Romero
Pablo Romero 2021년 6월 3일
Hi,
That warning occurs, if you have some fixed-point signals in your Simulink model but you do not have the Fixed-Point Toolbox. Replace your fixed-point signals with built-in data types such as uint8.
Also, another cause, if you are using "Compare to Zero" or "Compare to Constant" blocks whose output is set to uint8. Change the output data type to boolean to fix this issue.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by