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

3 visualizaciones (últimos 30 días)
Arpit Jain
Arpit Jain el 8 de Abr. de 2024
Respondida: Shlok el 16 de Oct. de 2024
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:

Respuestas (1)

Shlok
Shlok el 16 de Oct. de 2024
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:

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by