Problems with pulse and LEADING/LAGGING Tolerance in Test Manager
Show older comments
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?

Accepted Answer
More Answers (0)
Categories
Find more on Outputs in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!