필터 지우기
필터 지우기

Get name and dimensions of signal between two Blocks

조회 수: 2 (최근 30일)
Arne
Arne 2013년 12월 20일
댓글: Azzi Abdelmalek 2013년 12월 20일
Hello,
i am actually working on a kind of signal tracking in simulink with matlab code.
In a model i've got two blocks (which i can name by modelname/blockname) which are connected with a signalline.
Now i want to get the signalname (the one which i can define by double clicking on the line) and the number of muxed signals (1,2,3 or what ever).
Can someone help me?
Best Regards
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 20일
편집: Azzi Abdelmalek 2013년 12월 20일
What muxed signals?
Azzi Abdelmalek
Azzi Abdelmalek 2013년 12월 20일
Arne commented
I want to get the name and dimension of the In1 and In2 Signals.
With get_param([modelname '/' out{1,3}],'InputSignalNames')
i get the to signal names. While [modelname '/' out{1,3}] is the name of the Mux2
answer is
'In1' 'In2'
But how can i get the dimensions? The Constant might also be other sources, like "from"-Blocks or other blocks

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by