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!