Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
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

Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by