Code for deleting and adding connection between Simscape and Simulink blocks

조회 수: 2 (최근 30일)
Alicia Roder
Alicia Roder 2017년 3월 24일
댓글: Mathew Thorne 2018년 1월 17일
How do I delete or add a line between a Simscape and Simulink block? If I delete the Simscape lines by getting the 'LineHandles', storing them in A and then using
>> delete_line(A.RConn)
>> detele_line(A.LConn)
all Simscape connections get deleted but the Simulink connection remains. In addition, after I have deleted the connecting line I cannot add it any more using the add_line command. Is there a special code for Simulink/Simscape connections since I have to use different syntax for pure Simulink/Simulink and Simscape/Simscape connections? Thank you!
  댓글 수: 1
Mathew Thorne
Mathew Thorne 2018년 1월 17일
any solution found?
I had 2015b and could use delete_line(gcb, A.RConn, B.LConn) (ie using handles) to delete a line between two subsystems made of simscape components. But since moving to 2016b I have apparently lost this functionality?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Composite Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by