Create a Simulink model using command Lines

조회 수: 2 (최근 30일)
Ibrahim Ben Mrad
Ibrahim Ben Mrad 2022년 4월 12일
댓글: Ibrahim Ben Mrad 2022년 4월 12일
Hello!
I'm trying to create a Simulink model using command Lines. So my goal is to connect a subsystem to a inductor inside a for loop or more precisely connect the right port of the subsystem to the left port of the inductor inside a for loop (files attached)
My question is: how can i connect a susbsystem to a inductor using command lines?
thanks in advance

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2022년 4월 12일
  댓글 수: 6
Fangjun Jiang
Fangjun Jiang 2022년 4월 12일
add_line(gcs,'HF1/RConn1','Inductor/LConn1')
Ibrahim Ben Mrad
Ibrahim Ben Mrad 2022년 4월 12일
yes!
thx a lot it worked for me
again with strcat because of the for-Loop
regards

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by