Clear Filters
Clear Filters

xpc parameter passing and recording

2 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!