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

3 ビュー (過去 30 日間)
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

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 10 月 5 日
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 件のコメント
Sowmya Bethi
Sowmya Bethi 2020 年 10 月 5 日
i am getting only one error that is the same error which i posted .._!!
Fangjun Jiang
Fangjun Jiang 2020 年 10 月 5 日
Can you show a snapshot of your solver setting page, including the dropdown list of all the available solvers?

サインインしてコメントする。

その他の回答 (1 件)

Sowmya Bethi
Sowmya Bethi 2020 年 10 月 5 日
  3 件のコメント
Fangjun Jiang
Fangjun Jiang 2020 年 10 月 5 日
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.
Sowmya Bethi
Sowmya Bethi 2020 年 10 月 5 日
so i should change in my model to generate the plc code .
Thank you for the reply so fast ..!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink PLC Coder についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by