Why do I receive an error when building code from the fxpdemo_code_only.mdl Fixed-Point Blockset demo model?

2 次查看(过去 30 天)
I am attempting to generate code using the "fxpdemo_code_only" model.
I have followed the instructions contained within the model.
When I compile the model using the rtwec I get the following error:
Error executing build command: Error using ==> make_rtw
Error using ==> rtwgen
Logging non built-in data type is not supported. Cannot log outport block
'untitled/Out1' with data type sfix16_En12

采纳的回答

MathWorks Support Team
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The problem occurs when copying the model to the new window. The new model window that you copy the demo into logs the data for you by default. This causes an error message when generating code for fixed point data types.
In the new model, you need to go to Simulation Parameters and under the Workspace I/O tab, disable the "save to workspace" (time and output).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fixed Point 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by