simulink not running with no error showing

조회 수: 68 (최근 30일)
osama fahad
osama fahad 2023년 6월 27일
댓글: Abhas 2023년 6월 27일
i start to create simple electrical circuit in simulink
when i press run to simulate model
it is not running
and there is no error showing in the diagnostic viewer

답변 (2개)

Abhas
Abhas 2023년 6월 27일
Hi, there could be few issues with your model. Here are some of the ways you can try to look into:-
  1. Check your model configuration: Ensure that your model is properly configured for simulation. Check the solver settings, simulation duration, and other relevant parameters to make sure they are set correctly.
  2. Check for missing or disconnected blocks: Inspect your model carefully to ensure that all necessary blocks are present and properly connected. A missing or disconnected block could prevent the simulation from running.
  3. Check for conflicting or incorrect block parameter settings: Verify that the settings for each block in your model are appropriate for your simulation. Incorrect or conflicting parameter settings can lead to simulation issues.
  4. Restart MATLAB/Simulink: Sometimes, restarting MATLAB or Simulink can resolve temporary issues. Close and reopen the software to see if it resolves the problem.
If none of these steps resolve the problem, it may be helpful to provide more specific details about your model or any error messages you encounter.
  댓글 수: 2
osama fahad
osama fahad 2023년 6월 27일
but if there is an error it will show in the diagnostic viewer
in addition to that
when i try to run simulink onramp course
it happend with me the same thing
no error show
and when i press the run botton
it stop immediately
Abhas
Abhas 2023년 6월 27일
Try adding a display block to visualise the result. If you get some output in it, then your model is being executed.

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


Nathan Hardenberg
Nathan Hardenberg 2023년 6월 27일
How do you know that the simulation did not run? In your Model you have not really a good way to see that, since it will simulate very fast. Try adding something simple like:
If the display shows a value after you did press "Run", your Model ran perfectly fine. If you want the voltage over time you have to add a "Voltage Sensor". But in this case the voltage is contant.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by