필터 지우기
필터 지우기

Window appears while code is runnig

조회 수: 1 (최근 30일)
Sergey Kasyanov
Sergey Kasyanov 2018년 4월 30일
댓글: Sergey Kasyanov 2020년 9월 3일
Hello,
I'm trying to create library with some SimPowerSystem blocks. When I use blocks from my library in Simulink model and initialize it by the command
LF=power_loadflow('-v2','model','solve');
in the script the next window appears.
How can I avoid that window by auto applying changes to the library? Or may be there is better way to initialize model with users libraries blocks?
Thanks.

채택된 답변

Joel Van Sickel
Joel Van Sickel 2020년 9월 2일
Hello Sergey,
you can have library blocks automatically disconnect from a library when you add them to a model. This is not ideal because changes you make to the library won't be updated to these blocks, but it does solve this issue.
View this document and set link status to none: https://www.mathworks.com/help/simulink/ug/creating-block-libraries.html
Regards,
Joel
  댓글 수: 1
Sergey Kasyanov
Sergey Kasyanov 2020년 9월 3일
Thanks!
Also I can add that another way to avoid that problem is create complex blocks by functions (programming approach) not by the custom library. If you don't need to change reference block that way will be the best solution because it fast, flexible and give you full control of the block diagram.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parameterization Methods에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by