
Demux simulink (select which block gets input)
조회 수: 19 (최근 30일)
이전 댓글 표시
I am looking for a block that works as a digital de-muliplexer. I have one input signal and one selector input that determines which line the input gets passed through to.

I have looked at the demux block in simulink but it does not seem to do this:
"Demux
Split vector signals into scalars or smaller vectors."
I have also looked at "Output Switch" but this only seems to take queues as input.
댓글 수: 0
답변 (1개)
A Jenkins
2014년 4월 21일
Do you just need 2 outputs? Pretty simple to build your own.

댓글 수: 2
A Jenkins
2014년 4월 22일
편집: A Jenkins
2014년 4월 22일
Simulink does have a switch-case block, but personally I find it cumbersome, unless you have a special need for it.
If it is easer to write in C or m, then you can do so:

참고 항목
카테고리
Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!