Why do I get an error when trying to feed enumerated data types through a 'Unit Delay' block?
Show older comments
In Simulink (R2021b), I have a signal that carries enumerated data into a 'Unit Delay' block. I then use the output of the 'Unit Delay' block elsewhere in my model. However, when I try to run my model, I get the following error:
'<my_model>/Unit Delay' cannot convert parameter InitialCondition from data type 'double' to data type '<MyEnumType>' because conversion of parameters with enumerated data types is not supported.
The documentation page for 'Unit Delay' says that enumerated data is supported, so what is causing this error and how can I resolve it?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink 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!