Simulink error :Invalid setting of fixed step size

조회 수: 70 (최근 30일)
Aishwarya Govekar
Aishwarya Govekar 2020년 6월 3일
댓글: dekun wang 2021년 5월 25일
I am not able to understand why am I getting this error. Please guide me how to avoid it. Below I attach my simulation file as well for your reference.
Thank you.

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2020년 6월 9일
The error occurs because you have set the solver to fixed-step and specified the step size to be 0.001,which serves as the fundamental sample time of the model in the configuration parameters of the model ,but the sine wave block or other blocks in the model are set to a different sample time and not 0.001.In order to avoid the error either set the solver to variable-step or set the sample time in every block to 0.001 .
You can use ctrl+E or go to modelling---->model settings to change or reconfigure the settings in the configuration parameters window.
Refer to the below documentation link to get to know about the solvers
  댓글 수: 2
Aishwarya Govekar
Aishwarya Govekar 2020년 6월 9일
I did go for variable step. But it didn't give proper output.
dekun wang
dekun wang 2021년 5월 25일
Hi Aishwarya,
Were you using matlab 2021a? I ran into the same problem as you did. But it didn't have error when I used 2020a. Could it be a bug of matlab or something?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by