MATLAB Answers

Simulink error :Invalid setting of fixed step size

37 views (last 30 days)
Aishwarya Govekar
Aishwarya Govekar on 3 Jun 2020
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.


Sign in to comment.

Answers (1)

Jyotsna Talluri
Jyotsna Talluri on 9 Jun 2020
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

  1 Comment

Aishwarya Govekar
Aishwarya Govekar on 9 Jun 2020
I did go for variable step. But it didn't give proper output.

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!