Can not use the enumeration data with Test manager

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 commentaire

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

Connectez-vous pour commenter.

Réponses (1)

Matt
Matt le 9 Fév 2024

0 votes

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.

Produits

Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by