The RTW of simulink and adams

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

 Risposta accettata

Kaustubha Govind
Kaustubha Govind il 5 Apr 2012

0 voti

It looks like the Adams co-simulation blocks are not supported for code-generation.

Più risposte (0)

Categorie

Scopri di più su Simulink Coder in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by