Why does my model throw an error when I set my hard stop's initial position variable to zero?
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!