The RTW of simulink and adams
2 views (last 30 days)
Show older comments
I want to use RTW to bulid a C code of simulink&adams, but the program give me this sentences:" Error: File: D:\Program Files\MATLAB\R2011b\rtw\c\tlc\lib\utillib.tlc Line: 665 Column: 8 %exit directive: Simulink Coder Fatal in block: "ball4/S-Function1", block type "S-Function": MFile S-functions without a corresponding TLC file are not supported. You can inline your S-function (sysstop_new) by creating a TLC file for it. You can also remap your S-function to C by creating a corresponding C Mex source file and a sysstop_new.tlc file in the same directory as the MFile S-function which contains (on the first line): %% CallAsCMexLevel1 or %% CallAsCMexLevel2. "
0 Comments
Accepted Answer
Kaustubha Govind
on 5 Apr 2012
It looks like the Adams co-simulation blocks are not supported for code-generation.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!