필터 지우기
필터 지우기

Simulink Coder Fatal: The data type 'CAN_DATATYPE' is not supported because it has no CustomCast function.

조회 수: 9 (최근 30일)
I am receiving the following error when building a simulink model
'Error: File: C:\Program Files\MATLAB\R2018b\rtw\c\tlc\lib\utillib.tlc Line: 1526 Column: 8 %exit directive: Simulink Coder Fatal: The data type 'CAN_DATATYPE' is not supported because it has no CustomCast function.'
I am unsure how to fix this or why it is occurring

답변 (1개)

Dhruv
Dhruv 2023년 2월 22일
The Simulink Coder throws this error when it encounters a custom data type in the model that it does not know how to handle which in this scenario is 'CAN_DATATYPE'. To help solve the above issue, Simulink Coder requires a CustomCast function to be defined for any custom data types that it detects in the model and it appears that this function is missing for the 'CAN_DATATYPE' data type. The function takes an input value of the custom data type and returns a value that is supported by Simulink Coder.

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by