Use simulink to generate hdl code but receive an error below.

8 ビュー (過去 30 日間)
Kris Hsieh
Kris Hsieh 2021 年 8 月 17 日
回答済み: Pavan Guntha 2021 年 11 月 15 日
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 件のコメント
Kris Hsieh
Kris Hsieh 2021 年 8 月 22 日
@Pavan Guntha I've put my model in the context, thanks for answering.Wait for good news.

サインインしてコメントする。

回答 (1 件)

Pavan Guntha
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.
For more information you could refer to the documentation page for n-D Lookup Table.
Hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by