Problems with pulse and LEADING/LAGGING Tolerance in Test Manager
古いコメントを表示
I am using Simulink Test Manager.
I need to define a baseline for a pulse with tolerances. As shown in the attached image, the baseline is just a pulse, while the simulation output, Sim Output, is a constant at 0.
If I set the LEADING/LAGGING tolerance to 0, everything works as expected and the test fails.
However, if I set a tolerance (0.000078125), the test always passes. I actually expected it to fail in that case, the tolerance should only allow the pulse to occur a little earlier or later than the baseline one, not not to happen at all.
Instead, Simulink seems to only check that SimOutput at a time t corresponds to one of the values in the range [t-LEADING_TOL, t+LAGGING_TOL]. This means that if the pulse is smaller than the tolerance, the test always passes.
Is this the expected behavior? What would be the thing to do instead to satisfy my needs?

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!