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 Comment

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

Sign in to comment.

Answers (1)

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.

Products

Release

R2022b

Asked:

on 6 Jan 2023

Answered:

on 9 Feb 2024

Community Treasure Hunt

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

Start Hunting!