S-Function is not considered as inlined for code generation although TLC-File is on path
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
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!