How to split merged signals
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello,
I am trying to both merge two signals and display them in a scope as displayed below.
![QuestionMatlab1.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237185/QuestionMatlab1.png)
This results in the following error:
Branched signals cannot be fed into a Merge block. The signal from 'DummyFile2/Alarm_F(D)3/alarm_state' output port 2 is connected to both Merge block 'DummyFile2/Merge' input port 1 and to 'DummyFile2/Scope1' input port 1. To fix this error, you can insert a Signal Conversion block in Signal Copy mode and feed the output of the Signal Conversion block to only the Merge block.
So I tried to implement the recommended solution:
![QuestionMatlab2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237186/QuestionMatlab2.png)
Which again resulted in an error:
Invalid connection from block 'DummyFile2/Signal Conversion' output port 1 to Merge block 'DummyFile2/Merge' input port 1. An input signal to a Merge block must be connected and must originate from a conditionally executed subsystem that is not an Iterator subsystem
Can you tell me what the problem is / how to work around or solve it? I'd be grateful for help.
Thanks a lot!
댓글 수: 0
답변 (2개)
Nicolas B.
2019년 9월 6일
Hello Anna,
I am not very familiar with the merge block, but apparently, you cannot put a scope on the signals you are gonna merge. So try to disconnect your signals from the scope and try it again.
Regards
댓글 수: 0
Yonghui Chen
2021년 12월 16일
hello Anna,
I have the same problem, do you have solved it? thanks!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!