フィルターのクリア

xpc parameter passing and recording

2 ビュー (過去 30 日間)
Istvan
Istvan 2012 年 2 月 13 日
Dear All,
I have 2 questions on xPC... they might be really simple, but I would really appreciate some help.
1) can I pass parameters to my model on xPC, before starting it? This way, I would not have to loose time by re-compiling the model each single time. E.g. let's say I want to run the same model twice, once with a = 2 and once with a = 6 , without recompiling.
2) can I record a parameter of my running model at ONLY one time-point of the run? Something like "record the value of this output only at time t".
Thanks a lot for any help.
Istvan

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 14 日
  1. See the xPC documentation on Parameter Tuning to see how you can modify parameters without re-compiling.
  2. I believe you should be able to use an xPC Target Scope block and trigger it at a specific time and for a specific number of samples. I don't have any experience doing this, but there is some documentation here: http://www.mathworks.com/help/toolbox/xpc/gs/f0-35834.html#f0-61032
  1 件のコメント
Istvan
Istvan 2012 年 2 月 14 日
Thanks a lot! tg.setparam(..) is the key.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by