Why am I unable to generate code for the Real-Time Workshop Embedded Coder (ERT Target) for some Communications Blockset blocks?

8 views (last 30 days)
I am trying to use the ERT target to generate code for a communications model. However, I receive the following errors about missing TLC files:
Error executing build command: Error using ==> make_rtw
Error using ==> tlc_c (InvokeTLC)
Error: File: C:\MATLAB6p5\rtw\c\tlc\lib\utillib.tlc
Line: 173 Column: 8 %exit directive:
Real-Time Workshop Fatal in block:
"model/DBPSK Modulator Baseband/M-DPSK Modulator Baseband",
block type "S-Function":
The Embedded-C code format does not support S-Functions that do not have
corresponding TLC files. That is, you must provide a TLC file for
S-Function: scomapskmod. To locate this block, type:
>> hilite_system('<S26>/M-DPSK Modulator Baseband')

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The ability to do generate embedded code for communications blocks that are implemented as S-functions is not available in the Communications Blockset. This is true for any blocks implemented as a subsystem that have an underlying S-function. You can look under the mask of these blocks to see how they are implemented.
Many of the blocks in the Communications Blockset are not intended to generate embedded code, and thus have not been inlined. This means that no TLC-file is available to generate the embedded code for those blocks. Blocks which are instead built from other Simulink blocks or S-functions that have been inlined can be used with the ERT target.
Currently, to work around this problem, you can use the Generic Real-Time Target (GRT).
You should also check the "Known Software and Documentation Problems" section of the release notes for the Communications Blockset. Some of the Communications Blockset blocks are not compatible with Real-Time Workshop at all, and thus can not be used to generate code for any targets.

More Answers (0)

Categories

Find more on Simulink 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!