hello friends, when i done a modelling in simulink error "the "FixedStepDiscrete" solver cannot be used to simulate block diagram,because it contains continuous states" is occuring.... even i tried all the solver types but nothing worked.. help me..

조회 수: 204 (최근 30일)
hello friends, when i done a modelling in simulink error "the "FixedStepDiscrete" solver cannot be used to simulate block diagram,because it contains continuous states" is occuring.... even i tried all the solver types but nothing worked.. help me.. whther i need to change any other settings... im a begginer in this domain... guide me pls
  댓글 수: 1
youcef kesseir
youcef kesseir 2018년 3월 11일
Hey is problèmes thé "fixedstepdiscrete" solver cannot be used to simulation block diagramme ' power PVarray grid det

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

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 6월 12일
If you have continuous-time blocks like Integrators, Continuous State-Space/Transfer Function, etc., then you cannot use a discrete solver, as it does not support continuous states.
I am guessing you want to retain a fixed-step solver, so your option is then to either
  1. Switch from a discrete solver to one that supports continuous states
  2. Replace the continuous-time blocks with discrete-time blocks (like Unit Delay, Discrete Transfer Function, etc.)
To switch the solver: If you go to Simulation > Model Configuration Parameters, and then go to the Solver pane, try changing the solver from Discrete to any of the other fixed-step solvers like ode1 or ode3.
- Sebastian
  댓글 수: 3
Dao Vu
Dao Vu 2019년 1월 12일
Thanks Sebastian. It works for me. Just changed the solver to ode1
MAHENDRAN A
MAHENDRAN A 2024년 1월 9일
Actually nivethitha, you need to change the block parameters or the blocks itself. When you're seraching library browser, you can search for alternative discrete time blocks, so it will support fixed-step solver.

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

추가 답변 (2개)

Sandy
Sandy 2015년 7월 6일
Hi all,
How can I change the solver setting of simulink from Matlab workspace; goal is to set the Automatic Solver Parameter . I am using "set_param('modelname', ' Automatic Solver Parameter Selection' 'none') " but its not working. Can you please suggest me the right line code for this.
  댓글 수: 1
Sebastian Castro
Sebastian Castro 2015년 7월 6일
Next time, try asking this in a new question. This makes sure other people can more easily search for your specific question if they are looking for it. Anyway, the code is:
set_param('modelName','SolverPrmCheckMsg','none');
- Sebastian

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


Sandy
Sandy 2015년 8월 17일
Thanks! Sabastian..

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by