Why do I receive a data type mismatch error when using a model reference in Simulink?
이전 댓글 표시
My model contains a Model Reference block where the referenced model inport data type is set to AUTO. The referenced model uses the Compare to Constant block to compare the model input to a constant and output data of type UINT8. When I send the referenced model data of type double, I receive the following error:
Data type mismatch. Input port 1 of 'test_mod/Model' expects a signal of data type UINT8. However, it is driven by a signal of data type 'double'.
I do not think this should happen if the data type of the input port is set to AUTO.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 FMU Importing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!