Demux simulink (select which block gets input)

17 Ansichten (letzte 30 Tage)
Erik
Erik am 21 Apr. 2014
Bearbeitet: A Jenkins am 22 Apr. 2014
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.

Antworten (1)

A Jenkins
A Jenkins am 21 Apr. 2014
Do you just need 2 outputs? Pretty simple to build your own.
  2 Kommentare
Erik
Erik am 22 Apr. 2014
I was looking for something where we can easily add more outputs, like a switch-case in C.
A Jenkins
A Jenkins am 22 Apr. 2014
Bearbeitet: A Jenkins am 22 Apr. 2014
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:

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by