How to programmatically set the powerlib/simscape connection port?

5 ビュー (過去 30 日間)
And Meng
And Meng 2021 年 5 月 28 日
回答済み: And Meng 2021 年 6 月 3 日
When I try to use get_param(gcb,'MaskValueString') to take a look at the mask setting of the powerlib connection port, it returns empty string. I would like to know how I could programmatically set the powerlib connection port? programmatically configuring both 'Port number' and 'Port location on parent subsystem'?

採用された回答

And Meng
And Meng 2021 年 6 月 3 日
You can find all possible parameter of a block using:
get_param(gcb,'ObjectParameters')
In this case of the port location on parent subsystem, see
temp=get_param(gcb,'Side')
set_param(gcb,'Side','Right')

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by