Standalone app using simulink model with level 2 s-function

1 回表示 (過去 30 日間)
Pierre-Olivier Desrosiers
Pierre-Olivier Desrosiers 2022 年 6 月 15 日
コメント済み: Andrea Gonzalea 2022 年 6 月 15 日
Hi,
I'm currently working on a standalone app which uses a simulink model working with a level 2 s-func. It's a Sine wave ( y= Asin(wt + phi) ) and I want to change the parameters/inputs as well. Also, I saw that to make a standalone app using a s-func, you must write it in C (or C++). However, when I simulate my model, Matlab just crashes. So I was wondering what have I done wrong ? I have Simulink Compiler, and the use of the s-function is mandatory in this case (I am aware there are easier ways to make a Sine in standalone). Finally, I attach all the required files and for the sake of clarity, vitesse_ang = velocity (I'm french).
Thank you,
  1 件のコメント
Andrea Gonzalea
Andrea Gonzalea 2022 年 6 月 15 日
I have the same problem with s-fuctions and a standalone. If you get a solution for your issue please share it here.

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by