MATLAB: Do I receive an error when building code from the fxpdemo_code_only.mdl Fixed-Point Blockset demo model

codedatademoerrorfixedgeneratepointr13simulink fixed pointtypes

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

Best Answer

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).