How can I model tunability on the sample time in Simulink Coder R2022b?
Show older comments
I have a discrete-time model made in Simulink R2022b. I am trying to make the sample time a variable property for embedding purposes. The sample time needs to be tunable for code generation purposes. Let us define an Inport block "In1" and a sample time variable "Ts", set as tunable in the Model Explorer. When attempting to build the model, the following error appears:
Parameter 'SampleTime' of 'Model/In1' is non-tunable but refers to tunable variables (Ts (base workspace))
However, running the model works without any issues.
How can I implement the tunability of the sample time?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware 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!