I know that we can use Mux Block to have multiple inputs come into Scope Block. However, I sometimes see models that have Scope Block with multiple inputs and I am really interested in creating one. I attach a sample picture below http://i56.tinypic.com/2qdrkms.png

 채택된 답변

Paulo Silva
Paulo Silva 2011년 4월 17일

7 개 추천

The Scopes already support multiple inputs, just go to the Scope parameters and choose the number of axes (double click on the scope to get the graph up and click the second icon on the toolbar (the one next to the printer))
You can also have a look at the floating scope, bring the graph up and click on the graph, that will open a window where you can select the input signals, no connection will be made to the floating scope but it will draw the selected signals.

댓글 수: 5

Raymond Le
Raymond Le 2011년 4월 17일
Do not know it is that simple - thank you very much
SINGARAVELAN S
SINGARAVELAN S 2016년 11월 18일
sir i need see more signals for the same output in a same graph with change a one variable in the model. As per my model i use constant block for setting some temperature value. but i need to see what happen if my temperature changes. i attached image here as per that i need output for that i do.
meghana r
meghana r 2017년 10월 11일
sir if you have got answer for your question...can u tell me the solution.
Zayan Qazi
Zayan Qazi 2021년 4월 1일
in MATLAB 2020a, we can just right click on the scope. You'll see an option saying 'signals and ports'. Click on that and you can select the number of ports
Jorge
Jorge 2023년 6월 24일
In MATLAB 2023a, we can select the scope and select "SCOPE" from the ribbon toolbar on top. There is a field to specify the number of ports.

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

추가 답변 (2개)

Vaibhav Saxena
Vaibhav Saxena 2018년 2월 6일

1 개 추천

HI, with reference of your images, please use any one of the signal routing ie mux, merge or Bus creator. First connect multiple input signals with signal routing and connect output of it with scope. And run the model. You will get multiple plots in single frame of SCOPE. Note: Always use the same data type signals. It will not work multiple data type signals.
Vaibhav Saxena
Dimitris Iliou
Dimitris Iliou 2026년 5월 29일 14:19

0 개 추천

You can configure a Scope block to accept multiple input ports without using signal routing blocks. There are several ways to do this:
1) Port autogrow
  • Drag additional signals directly onto the Scope block. Each new connection automatically creates a new input port.
2) Configure the number of inputs from the Scope properties
a) Property Inspector (Main section)
  • Select the Scope block
  • In the Property Inspector, locate the field for the number of input ports
  • Set it to the desired value
b) Scope window settings (gear icon)
  • Double-click the Scope block to open the Scope window
  • Click the Settings (gear icon) under the Scope tab
  • In the General section, set Number of input ports to the desired value
3) Simulink Toolstrip
  • Select the Scope block
  • Use the Scope tab in the Simulink toolstrip
  • Set the Number of ports directly

태그

질문:

2011년 4월 17일

답변:

2026년 5월 29일 14:19

Community Treasure Hunt

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

Start Hunting!

Translated by