where is the HDL Coder option to 'Support floating point numbers'?
4 views (last 30 days)
Show older comments
I keep getting the following error message each time I try to generate HDL code:
"The persistent variable 'x' in chart 'Subsystem/MATLAB Function' is of non-integer type. The option 'Support floating-point numbers' has not been set Code Generation configuration options. Hence, only integer code/data is allowed. HDL code generation failed for 'Subsystem/MATLAB Function'"
I wonder if this is simply a check box in the configuration options that I need to select, but I can't seem to find anything.
0 Comments
Answers (1)
Steven Lord
on 18 Oct 2018
When I searched the release R2018a documentation for the phrase "'Support floating-point numbers'" this page was the second hit.
I opened a sample model (f14). Under the Simulation menu I opened the Model Configuration Parameters dialog. In the Code Generation section I had to select ert.tlc (since the first item in the Dependencies section on that documentation page states that this option is only available on ERT-based targets and f14 uses the generic target by default.) After doing that I expanded the Code Generation section and the Interface subsection had "Support: floating-point numbers" available.
See Also
Categories
Find more on HDL Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!