Data Types of Signals in a Bus Selector
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi, Is it possible to get the data-type of the signals in a bus-selector programmatically. any help will be appreciated. Thanks
댓글 수: 0
답변 (1개)
Ismael Alcalá
2012년 11월 28일
편집: Ismael Alcalá
2012년 11월 28일
Hi Deepak, you can select the bus-selector block in simulink and execute in matlab:
portHandles = get(gcbh,'PortHandles')
mStruct = Simulink.Bus.createMATLABStruct(portHandles.Outport)
Then you can find all signal types in the bus selector using class for each signal
class(mStruct.Message1.signal)
ans =
int16
I hope this can help you,
I. Alcalá
댓글 수: 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!