How to replace Simulink/Simscape blocks when using parsim?

3 ビュー (過去 30 日間)
David Redondo Viñolo
David Redondo Viñolo 2021 年 9 月 16 日
回答済み: Javier 2022 年 11 月 15 日
Hi,
I am automating a series of simulations using parsim. How could I replace a block for a specific simulation in the simulation input set?
Thank you in advance
  1 件のコメント
Rahul Kumar
Rahul Kumar 2022 年 4 月 8 日
Can you provide more details of what you are trying to do?

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

回答 (1 件)

Javier
Javier 2022 年 11 月 15 日
Hi,
I have a similar problem, I prefer not to open a new question.
In my case, I'm trying to sweep with a parsim simulation the value of 'L' in a "'Three-Phase Series RLC Branch" simscape model:
which have the following parameters:
Following the example given here, this is my code for sweep 'Lg' from the values stored in "vector_Lg".
for idx = 1:numSims
simIn(idx) = simIn(idx).setBlockParameter([model '/Zg'], 'Lg', num2str(vector_Lg(idx)))
end
However, I obtain this error "Three-Phase Series RLC Branch block (mask) does not have a parameter named 'Lg'". What am I doing wrong? Is it possible to vary a parameter in Simscape?
Thanks in advance,

カテゴリ

Help Center および File ExchangeComposite Components についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by