Use of bus selector

조회 수: 3 (최근 30일)
William
William 2014년 7월 16일
답변: Yash 2025년 2월 16일
Bus selection take in 2 inputs but generate 2 outputs. Is there any equivalent but only generate one output? I would like to plot only 1 output based on the conditions of the inputs.
Thanks.
  댓글 수: 2
William
William 2014년 7월 16일
I meant the MUX, not the bus selector.
William
William 2014년 7월 17일
편집: William 2014년 7월 17일
I will try to explain what I am looking for (The MUX block is not the one I should use). I uesd the If block to compare two inputs & output only 1 signal based on the condition. I am looking for a block in Simulik which will do the selection for me (plot the signal I want). I attached the image of this model.

댓글을 달려면 로그인하십시오.

답변 (1개)

Yash
Yash 2025년 2월 16일
You can achieve this by using Switch block from the Signal Routing Library and connecting the output of this block to a Scope. This will plot the signal based on the condition specified in the Switch block.
Read more about Switch & Scope blocks here:
web(fullfile(docroot, 'simulink/slref/switch.html'))
web(fullfile(docroot, 'simulink/slref/scope.html'))

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by