MATLAB: The RTW of simulink and adams

adamssimulinksimulink coder

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

Best Answer

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