Why does my model throw an error when I set my hard stop's initial position variable to zero?
Mostrar comentarios más antiguos
I am creating a simple mechanical translational system with a spring and a hard stop using Simscape (see attached model, "hardStop_withError"). Based on the given parameters and the initial conditions I am setting, I am expecting my display to read "0". Instead, I get the following error.
Error:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Failed to update switched linear model, due to system singularity in current configuration.
Cannot solve for one or more variables...
If I change the initial position of the "hard stop" block to anything less than zero (such as -1e-6), I do not get this error. Why is my model not performing as expected?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Assembly en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!