Use simulink to generate hdl code but receive an error below.
조회 수: 7 (최근 30일)
이전 댓글 표시
Internal Error: Evaluation of validate function on class hdldefaults.LookupTableND failed with the error message: MATLAB:UndefinedFunction: Undefined function 'storedInteger' for input arguments of type 'double'.
How can I solve this error ? Is anything I do not intall?
My matlab version is R2021a, and my model is in attachment.
댓글 수: 2
Pavan Guntha
2021년 8월 19일
Could you provide more information regarding the Simulink model by sharing the file or snapshots of the model ?
답변 (1개)
Pavan Guntha
2021년 11월 15일
Hello Kris,
The documentation for n-D Lookup Table shows that HDL Code Generation for is supported for 'Flat' and 'Linear point-slope' interpolation methods. In the Restrictions section, it also indicates that when the Interpolation method is set to 'Flat', the block supports 'half' data type for inputs, breakpoints and outputs. In the attached model, the restriction condition isn't met as the Interpolation method has been set to 'Flat' but the input data type isn't 'half'. You could vary the datatype of the inputs or change the interpolation appropriately adhering to the constraints mentioned in the documentation page.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 User-Defined MATLAB Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!