Hello, I am getting an error while executing my Simulink model of EV.

3 次查看(过去 30 天)
Simulation
1 1
Clear
05:46 PM Elapsed: 6 sec
Output port 1 of 'Project_Model/Longitudinal Driver' is not connected.
Component:Simulink | Category:Block warning
An error occurred while running the simulation and the simulation was terminated
Caused by:

回答(1 个)

Shlok
Shlok 2024-10-16
Hi Arpit,
Upon reviewing the logs, it seems that the error is primarily due to the solver failing to converge on the initial conditions. This indicates that the solver is having trouble finding a consistent set of initial conditions for the simulation. Here are some steps you can take to troubleshoot and resolve this issue:
  • The error message mentions a dependency among topology equations, so ensure that all electrical components have a common reference node (ground). To ground your circuit, add an electrical reference block: https://www.mathworks.com/help/simscape/ref/electricalreference.html
  • Verify that the initial conditions for all components are set correctly and consistently. Conflicting initial conditions can cause the solver to fail. For example, make sure that the initial voltages and currents are physically realistic and consistent across the model.
  • Adjust the solver settings in the Solver Configuration block. Sometimes, relaxing the tolerances or changing the solver type can help the solver converge.
  • If the model is complex, try isolating different parts and running simulations on smaller sections to identify where the problem might be occurring.
Additionally, there’s a warning about the output port of the 'Longitudinal Driver' block not being connected. This suggests that a block in your model isn’t properly connected to the rest of the system. Ensure that all output ports are connected to appropriate blocks or terminators.
Addressing these issues should help you resolve the error.
To know more about solvers, you can refer to the following documentation link:

类别

Help CenterFile Exchange 中查找有关 Switches and Breakers 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by