Filter löschen
Filter löschen

xpc parameter passing and recording

2 Ansichten (letzte 30 Tage)
Istvan
Istvan am 13 Feb. 2012
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

Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 14 Feb. 2012
  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 Kommentar
Istvan
Istvan am 14 Feb. 2012
Thanks a lot! tg.setparam(..) is the key.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu General Applications finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by