Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by