Can not use the enumeration data with Test manager
Mostrar comentarios más antiguos
I am trying the "Conduct Unit Testing on Imported Custom Code by Using the Wizard" example with auto stubs. So I have to use some additional data as input and one of them is enumeration type data.
I am getting below error when I try to run the test using input data which has enumeration data with it.

The Error message says that I have to clear the 'Interpolate Data' option. But I can not find this option in teat manager UI.
Please help me out to solve this issue.
Thank you
1 comentario
Theophile
el 18 de Sept. de 2023
I have similar issue with a test harness using an enumeration data as Input.
I can see that the option "Interpolate Data" would be available in the "From Workspace" Simulink block.
Sadly, this one does not appears as part of the test harness. It looks like it is generated at test harness runtime only.
Would someone know how to solve this issue ?
Thank you
Respuestas (1)
Matt
el 9 de Feb. de 2024
0 votos
I had this similar issue (R2022b). I found that the Inport block using the enumeration datatype had this option, Interpolate Data, under the Execution tab within the block parameters window. Once I unchecked this option, saved the model, and reran within Simulink Test, the tests ran sucessfully. I hope this helps.
Categorías
Más información sobre Inputs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!