Azzera filtri
Azzera filtri

xpc parameter passing and recording

2 visualizzazioni (ultimi 30 giorni)
Istvan
Istvan il 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

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 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

Più risposte (0)

Categorie

Scopri di più su General Applications in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by