필터 지우기
필터 지우기

How to distinguish Simscape and Simulink lines in a program?

조회 수: 1 (최근 30일)
Aseem Routray
Aseem Routray 2019년 12월 3일
답변: Joel Van Sickel 2020년 8월 18일
I want to differentiate simscape and simulink lines in my simulink model, so that I can obtain the line handles of the simscape wires only. When I am using find_system, I am getting the linehandles of all the lines and am unable to differentiate between the two.

채택된 답변

Joel Van Sickel
Joel Van Sickel 2020년 8월 18일
Hello Aseem,
unfortunately, there is not an object parameter that easily distinguishes between the types of lines. However, you could loop through the lines and use the destBlk = get_param(line,'DstBlockHandle'); and analyze that block to see if it is a simscape block or a simulink block. That would let you know if that particular line was a simscape line. You could also look at the source block as well.
Regards,
Joel

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Operators에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by