Test Manager- "Linear interpolated traces are only supported with double, single, and half values"
4 views (last 30 days)
Show older comments
I'm performing Logical and Temporal assessment of a Triggered Subsystem using the Test Manager, the assessment fails with the message :"Linear interpolated traces are only supported with double, single, and half values" referring to a boolean signal inside the triggered Subsystem.
I am not expecting to have any kind of interpolation since the signal should be considered with a zero order hold.
I am also getting issues with Assessment where two signal appears to be equal, as expected, while looking at the SimOutput signals, but are considered different ( and thus test is not passed) during the last timestep.
I am suspicious that also in this case some interpolation is being computed an so the values used for assessment are different.
0 Comments
Answers (1)
Piyush Dubey
on 5 Sep 2023
Hi Fabio,
In my understanding you are trying to perform temporal and logical assessment of a Triggered Subsystem which throws an error prompting, "Linear interpolated traces are only supported with double, single, and half values" while referring to a boolean signal inside the subsystem. There are issues with respect to assessment of the two signals as well, where you expect the signals to be equal but they turn out to be different during the last timestep.
The error message you encountered regarding linear interpolated traces suggests that the ‘Test Manager’ expects the signal to have a numerical data type (such as double, single, or half) rather than a boolean data type. To address this issue, you can try converting the boolean signal to a numerical representation before performing the assessment. Since you are not expecting an interpolation through the operations performed by you, prefer applying an explicit conversion for all entered values to a specific data type. This will allow the ‘Test Manager’ to work with the converted numerical signal without encountering the interpolation error.
Regarding the issue where two signals appear to be equal in the “SimOutput” signals but are considered different during the last timestep, if you suspect interpolation is being computed and causing differences in the assessment values, check the settings of your simulation solver and ensure that it is not performing any interpolation or using “variable-step” solvers that could introduce interpolation. You may want to use a “fixed-step” solver or adjust the solver settings to match your expectations of zero-order hold behavior.
Please refer to the following MathWorks documentation links for more information on “Logical and Temporal Assessment”:
Hope this helps.
0 Comments
See Also
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!