Why doesn't my sample time change?
Show older comments
Hello,
I have been given a Simulink model using a sample time of 0.1s. I want to add an S-function (.mexw64) that requires a sample time of 0.01s. However, trying to change the solver sample time to 0.01s doesn't seem to work. I get the following error:
The sample time period (0.01) of 'model block x' is not an integer multiple of the fixed step size (0.1) specified for model.
The error occurs for several model blocks, x, y, z, etc... In the model explorer, all configurations have the same sample times, 0.01s, but the error persists. I have found no program lines that change the sample time during excecution. Is there something I have missed?
BR Stellan
Accepted Answer
More Answers (0)
Categories
Find more on General Applications 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!