How to programmatically set the powerlib/simscape connection port?

조회 수: 9 (최근 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 CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by