Detecting solver errors in compiled Simscape Multibody model

조회 수: 2 (최근 30일)
Andrew Knowles
Andrew Knowles 2021년 5월 6일
답변: Steve Miller 2021년 6월 3일
I have produced a Simscape Multibody model that works appropriately in the Simulink workspace. If I make unreasonable demands of the model's behaviour, it produces an error and the run stops.
We are going to use this model in a compiled environment.
How can we detect when an ‘impossible situation’ error occurs within the compiled model?
If such an error occurs, what will the compiled model do? Eg. does it stop at the last successful state?
Regards,
Andrew

답변 (1개)

Steve Miller
Steve Miller 2021년 6월 3일
Hi Andrew - the "impossible situation" is from a combination of the compiled model, solver settings, and inputs fed to the model. It depends on your compiled environment how failures will be handled, and to develop methods for ensuring "graceful failure".
Normally, we rely on unit testing to make sure the model will not be exposed to impossible situations, as well as limiting inputs and rate of change of inputs to reduce the risk that such a situation will occur.
-Steve

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by