Test Manager minimum duration condition
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I would like to create in the Test Manager the following assessment:
At any point of time, if myCondition == true becomes true then, with no delay, myCondition == true must stay true for at least 1s.
This sounds like a "standard" kind of assessment to check minimal timing and my conditions sounds correct to me. Unfortunately, when I define that assessment, I get the following error:
Error evaluating assessment 'Assessment1'.
Caused by: Error during assessment evaluation. Error during evaluation of expression 'Assessment1: At any point in time, if isTrue becomes true then, with no delay, isTrue must stay true for at least 2.5e-06 seconds'. Error during evaluation of expression 'isTrue must stay true for at least 2.5e-06 seconds'.
Unsupported signal: time vector must be strictly increasing.
I'm running my simulation in fixed-step and funny enough, this error occurs only and only if the time I set for "must stay true for at least" is exactly the time the condition is true. If I deduced 1 ns, then it works.
Has anyone a idea how I could avoid that issue or whether it is a bug in Simulink Test?
Thank you for your answer, Nicolas
2 commentaires
Giovanni Miraglia
le 18 Juin 2021
This usually happens when a signal has more than one value for the same point in time. This phenomenon might be caused by multiple things. For instance, it can be caused by rounding errors. Without having more information about your setup and model it's difficult to provide a comprehensive answer. I would suggest providing more information about your setup including which release you are currently using.
Réponses (0)
Voir également
Catégories
En savoir plus sur Outputs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!