フィルターのクリア

how to get simulink stop time even if using code generation

2 ビュー (過去 30 日間)
Mitch Lautigar
Mitch Lautigar 2020 年 5 月 21 日
コメント済み: Fangjun Jiang 2020 年 5 月 22 日
I am trying to generate a chirp signal that is dependant on the simulation stop time(currently is set to 1 second). I do have matlab programming in the simulation so I keep running into an issue with "code generation" that won't let me do it. i've tried get_param as well as a couple other different tricks to be met with little to no progress.

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 5 月 21 日
Not sure what you mean.
>> vdp
>> get_param('vdp','StopTime')
ans =
'20'
  2 件のコメント
Mitch Lautigar
Mitch Lautigar 2020 年 5 月 22 日
I get 'get_param' is not supported for code generation.
Fangjun Jiang
Fangjun Jiang 2020 年 5 月 22 日
Yes. Imagine that after the code is generated and compiled and is running in a CPU, there would be no "model" and no "stop time".

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by