필터 지우기
필터 지우기

error in electric vehicle simulation in Simulink

조회 수: 7 (최근 30일)
ugonna
ugonna 2023년 8월 18일
댓글: Fangjun Jiang 2023년 8월 20일
Minimum step size (2.0) is larger than discrete sampling period (0.5)
Component:Simulink | Category:Model error
I tried running a model in simulink and this is what it keeps showing. Are there any suggestions on how i can increasing the discrete sampling period.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 8월 18일
Press Ctrl+E to bring up the configuration parameters, Solver, set the Minimum step size from 2.0 to at least 0.5, or better at 0.1.
  댓글 수: 2
ugonna
ugonna 2023년 8월 18일
but thats the issue if the minimum step size is .1 the simulations runs really slow
Fangjun Jiang
Fangjun Jiang 2023년 8월 20일
First you need to set the model correctly and run simulation. Then you can talk about fast or slow simulation speed.
If there is no other constraint, you could change the discrete sample time from 0.5 to something larger, for example 2.0. Then you could make the mininum step size to be the same as that discrete sample time. It will run and it probably will be faster.
You need to find the blocks that determines the 0.5 discrete sample time to change it.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by