S-Function is not considered as inlined for code generation although TLC-File is on path

3 次查看(过去 30 天)
Hi,
I implemented a S-Function in C which compiles and simulates fine. During Code-Generation I receive the following error:
% Block '...' is a non-inlined S-function, which is not supported with the current configuration. Consider selecting Support non-inlined S-functions.
The Simulink-Setting to only support inlined S-functions is intended. The C-File, compiled MEX file and TLC are on path. The C-File implements the mdlRTW function. The block "Simulink/User-Defined Functions/S-Function" is used in the model.
Here is the empty TLC-File:
%implements "block_reinterpretcast" "C"
%function BlockTypeSetup(block, system) void
// Just a comment
%endfunction %% BlockTypeSetup
%function Start(block, system) Output
// Just a comment
%endfunction %% Start
%function Outputs(block, system) Output
// Just a comment
%endfunction %% Outputs
What could be possible reasons for that error? I use the same configuration with other S-Functions without issues. Thank you for any ideas.
Alexander

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by