DSPRelated.com
Forums

switch(decision?) block in simulink

Started by tien...@yahoo.com January 24, 2008
I want to add a swith to my simulink simulation blocks.
Output blockA is fed to blockB, and that from blockB is fed to blockC.

blockA -> blockB -> blockC

I want to revise it like:

if(output from blockA is zero) then
blockA -> blockC //bypass blockB
else
blockA -> blockB -> blockC
end if

Can anyone tell me which block to use? I fund SwitchCase block but that needs specific values.
I only have two states: output from blockA is zero or non-zero.

Thank you for your help.