Effacer les filtres
Effacer les filtres

xpc parameter passing and recording

2 vues (au cours des 30 derniers jours)
Istvan
Istvan le 13 Fév 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

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 14 Fév 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 commentaire
Istvan
Istvan le 14 Fév 2012
Thanks a lot! tg.setparam(..) is the key.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by