simulink not running with no error showing

168 次查看(过去 30 天)
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 中查找有关 Simulation and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by