simulink scope: scale x axis

조회 수: 73 (최근 30일)
Swantje Dettmann
Swantje Dettmann 2020년 10월 9일
댓글: Swantje Dettmann 2020년 10월 19일
Hello,
my question is about scaling the x axis of a simulink scope.
My model runs with time steps of 15 seconds and simulates several hours or days. When I have a scope connected, The x-axis does not really give useful information as 7x10^5 s is really hard to imagine. I would rather have the x-axis display the time in hours or days, but I don't know how to do this.
I know how to do this using figures after the simulation terminated, but I need it while the simulation is running.
Could anyone please give me a hint?
Thanks in advance
Swantje

답변 (1개)

Surya Talluri
Surya Talluri 2020년 10월 12일
I understand that you want to change time units from seconds to hours/days of a scope during the simulation. You can do that by going to View > Configuration Properties > Time and setting Time units to Metric (based on Time Span) option. You can do this during the simulation without stopping or pausing the simulation.
You can refer to this documentation for further understanding of Configuring Scope block.
  댓글 수: 1
Swantje Dettmann
Swantje Dettmann 2020년 10월 19일
Thank you for you answer.
I changed the y axis to "metric" and the units automatically changed to "days". In most situations, I'd prefer hous or minutes to days with several decimal digits. How can I configure the unit of measurement displayed?
I don not necessarily have to change this while the simulation is running, but I do not want to have to set up a seperate figure to be drawn after the simulation finished.
How can I solve this?

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

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by