Avoid SS_OPTION_​SFUNCTION_​INLINED_FO​R_RTW error

1 回表示 (過去 30 日間)
Pierre-Olivier Desrosiers
Pierre-Olivier Desrosiers 2022 年 7 月 4 日
移動済み: Stefanie Schwarz 2024 年 4 月 26 日
Hi guys, i'm currently working on a simulink model that uses S-function written in C language. It works in normal mode, but when I select "Rapid Accelerator Mode" I receive this message:
"
Unable to build a standalone executable to simulate the model 'S_function' in rapid accelerator mode.
Caused by: S-function 'S_function1' in 'S_function/S-Function' specifies option SS_OPTION_SFUNCTION_INLINED_FOR_RTW however a 'S_function1.tlc' file could not be located in the current working directory, the S-function directory 'C:\Users\PODES7\Desktop\Sinus_REALG', or the directory 'C:\Users\PODES7\Desktop\Sinus_REALG\tlc_c'
"
However, I've written it like that, but honestly I have no idea if it's correct.
%implements "S_function" "C"
Also, my simulink model is named "S_function.slx", my main/header are called "main.c" and "Sine_value.h" and my S-function is called "S_function1.c". I've also tried to remove the SS_OPTION_SFUNCTION_INLINED_FOR_RTW part from my S_function1.c, but the problem remains.
Can somebody help me please ?

採用された回答

Pierre-Olivier Desrosiers
Pierre-Olivier Desrosiers 2022 年 7 月 4 日
移動済み: Stefanie Schwarz 2024 年 4 月 26 日
Found my mistake... My TLC file wasn't named S_function1.tlc but was named S_function.tlc

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by