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..

4 views (last 30 days)
i have tried all the solver and didnt get anything its just giving me the same error without that i cannot run the plc code.please give me a solution .
Thank you

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 5 Oct 2020
You mean "all the solver" that are available??
Choose "ode45" or "auto". What is the error message if theare are any? It can't be the same as "the FixedStepDiscrete cannot be used".
  3 Comments
Fangjun Jiang
Fangjun Jiang on 5 Oct 2020
Can you show a snapshot of your solver setting page, including the dropdown list of all the available solvers?

Sign in to comment.

More Answers (1)

Sowmya Bethi
Sowmya Bethi on 5 Oct 2020
  3 Comments
Fangjun Jiang
Fangjun Jiang on 5 Oct 2020
On the left of "solver", select "Variable-step" and then try different type of solver.
You may be abel to run simulation but won't be able to generate PLC code. To generate code, the solver type has to be "fixed-step". You need to make your model discrete. Right now, your model has continuous states as the error message says.

Sign in to comment.

Categories

Find more on Simulink PLC Coder in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!