How can I tune parameters inside a model reference using Speedgoat & Simulink Real-Time (SLRT)?
23 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2024 年 2 月 7 日
回答済み: MathWorks Support Team
2024 年 2 月 7 日
How can I tune parameters inside a model reference with Speedgoat & Simulink Real-Time (SLRT)?
採用された回答
MathWorks Support Team
2024 年 11 月 22 日 0:00
In R2020b and later, only model-level parameters are supported for tuning with Speedgoat & Simulink Real-Time (SLRT). This means that you can tune workspace parameters, model arguments, and model instance parameters in referenced models. Tuning block parameters inside referenced models is no longer possible.
In order to tune parameters in referenced models, you can parameterize the references for the variables you want to control. For more information, see Parameterize Instances of a Reusable Referenced Model and Tunable Block Parameters and Tunable Global Parameters.
Note that structured parameters are supported as well, so it is possible to group many individual parameters together to simplify things.
For programmatic tuning with "setparam", note that the correct syntax for tuning parameters of reference model instances is:
>> tg = slrealtime;
>> tg.setparam({'top/model','sub/model'},'myParam',5);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Real-Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!