Tell what type of line is selected in Simulink

조회 수: 2 (최근 30일)
Duke
Duke 2013년 8월 29일
Is there any way that I can tell what a line is from the coommand line. I would like to see if a line is a bus or just a normal line without looking at the model.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 8월 29일
There is a parameter called SignalHierarchy which gives information about bus signals, but it is available on port handles, not line handles. You can try something like the following to obtain the information via a line handle:
>> get_param(get_param(lineHandle, 'SrcPortHandle'), 'SignalHierarchy')
The BusObject and Children fields should be non-empty for buses.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by