can we add a signal wire as symbol in assesment callback in test harness.
Show older comments
I need to add a signal wire which carries the temperature in degree. I need to compare it with overtemperature threshold for getting a defined enum value , if it crosses the threshold else the enum will be no fault. when i implemented this for assesment callback my assesment doesnt seem to pass . but i cross verified by logging to signal wire there it works fine actually
Answers (1)
Samhitha
on 27 Jan 2026
0 votes
Since the signal wire correctly shows the temperature crossing the threshold but the assessment does not pass, the issue is most likely related to when and from where the value is being read in the assessment callback. The callback may be executing before the temperature signal is updated, or in a different task cycle, so it ends up comparing an old value even though the signal wire later shows the correct temperature.
Another common cause is a signal mismatch between the wire and the assessment logic. The wire may be showing a scaled temperature in degrees, while the assessment callback is using a different variable or unit. This makes the comparison look correct on the wire but incorrect inside the assessment.
Thank you!
Categories
Find more on Outputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!