Simulink For each with nonvirtual bus
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello I am trying to refactor some old Simulink models and I am stuck with a problem:
I have a nonvirtual Input bus which I want to use in a for each block. However this seems not to be possible. My workarround is that I have a bus selector and a mux in front and a deumx and Bus creator at the end (see image) ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315360/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315360/image.png)
this works fine. However, when I Connect the output to the bus again and compile the for each block seems to create only a single scalar output... (see image)![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315363/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315363/image.png)
It has to do something with the for each block! How Do I have to specify the for each block in this case??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315366/image.png)
Glad for your help.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!