error in Simulink simulation time

I simulate a model in Simulink with a discrete solver, the result of simulation is limited to a reduced interval e6 à10e6 even if I set the simulation time from 0 to 10e6, what is the parameter to change to remedy

답변 (2개)

Sebastian Castro
Sebastian Castro 2015년 5월 13일

0 개 추천

1 - Block-dependent settings:
Check if any of your blocks have an explicit sample time that is too small, by going to Display --> Sample Time --> All and looking at the colors/labels.
2 - Global model settings:
Go to your Configuration Parameters (Ctrl+E). In the Solver pane, see if you have set your Max step-size (or if fixed-step, your regular step-size) to this small number.
- Sebastian
studentU
studentU 2015년 5월 13일

0 개 추천

Thank's for your replay, i try it but the problem still subsite,

댓글 수: 5

Sebastian Castro
Sebastian Castro 2015년 5월 13일
Well, if you have any other information besides "still doesn't work", let me know and I can give you some more ideas :)
studentU
studentU 2015년 5월 13일
thank you ,
may be that the Y axis is fixed to a small step, so how can I not for this axis?
Sebastian Castro
Sebastian Castro 2015년 5월 13일
You mean the X axis (time)?
Are you using a Scope or are you outputting the data into the MATLAB Workspace?
studentU
studentU 2015년 5월 13일
the Y axis, i use Scope.
Sebastian Castro
Sebastian Castro 2015년 5월 13일
If it's the Y-axis, you can just right-click the scope axes and you will get 2 important options:
  1. Axes properties: Lets you manually enter values for Y-min and Y-max, depending on how you want your plot to look.
  2. Autoscale: It will scale the Y-axis automatically to fit all the data
There is also an "Autoscale" button on the scope toolbar. It should look like a square with 4 arrows pointing out at the corners.

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

카테고리

도움말 센터File Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

태그

질문:

2015년 5월 12일

댓글:

2015년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by