How can I extract information about BusObjects and Signals in my Model with Simulink 7.3 (R2009a)?
조회 수: 2 (최근 30일)
이전 댓글 표시
I created a model wich uses Bus Objects to define signals going through Inport and Outport blocks. I want to programmatically determine which Bus Objects are being used in Inports and Outport blocks.
채택된 답변
MathWorks Support Team
2009년 8월 26일
Inport and Outport blocks have a "busObject" property. This parameter can be used to obtain information about used BusObjects.
Here is an example code that shows how to obtain a handle to all Inport blocks in a model and verify if they are associated to a bus object:
handle = find_system(bdroot,'BlockType','Inport');
for i=1:length(handle)
BusList{i} = get_param(handle(i),'BusObject');
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!