フィルターのクリア

rtw grt-target, Parameters

2 ビュー (過去 30 日間)
uli terlinden
uli terlinden 2011 年 8 月 11 日
Hello, i have a question concerning the Parameters of a model that has been built to an executable by RTW using the grt-target. How can these Parameters be changed after the model has been built ? Or is it impossible to do this ? I would be very thankfull for any answer.
Greetings, uli

採用された回答

Desiree
Desiree 2011 年 8 月 11 日
With the GRT (grt.tlc) generated executable it is not possible to control parameters in the model. You can use "From File" and "To File" blocks for input and output signals, but parameters cannot be controlled over this.
One option is to use the Rapid Simulation Target (rsim.tlc) which offers an interface for the generated executable:
However please note that you should not use RSim generated executables in a completely standalone way as there are dependencies to libraries from the MATLAB/Simulink installation.
To generate applications which can really be used in a standalone way you could use Embedded Coder to generate a DLL from your model (ert_shrlib.tlc). You can use this in an external IDE (from a C program f.ex.) but also from MATLAB:
  1 件のコメント
uli terlinden
uli terlinden 2011 年 8 月 11 日
Thanks a lot for your kind answer.
I tried to insert a FROM FILE Block in simple model but it seems like it doesn't work the way I (and maybe you as well) expected it to do.
The executable always delivers the same Results for different Sourcefiles while the uncompiled model gives out two different results for different Sourcefiles. Rsim -target will not apply for my purpose as well, because (maybe i am wrong here) the mechanism to hand over new Initial-Values to the model requires that also the model (and therefore Simulink) are available (rsimgetrtp(...) for example doesn't work without accessing the model).
Is the EMBEDDED CODER capable of compiling a Simulink model with S Functions ? However, I will try it....
Thank you very much so far,
uli

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by