필터 지우기
필터 지우기

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