Simulink not respecting the sampling time
Show older comments
I have a Simulink model that have to acquire data from a device every 20 ms and then run this data through a neural network. I used a function call generator to call the acquisition every 20 ms but Simulink seem to not respect that timing.
What to do ?
2 Comments
Birdman
on 6 Jun 2018
How do you know that Simulink does not respect the sampling time? What do you observe?
Oussama Djedidi
on 6 Jun 2018
Answers (1)
Mark McBroom
on 8 Jun 2018
0 votes
Do you have Simulink connected directly to the device? Simulink is not a real-time program. It will run the simulation as fast as it can. If your model runs faster than real-time, you can slow it down to pseudo-real time by using the Simulation -> Pacing Options.
Categories
Find more on Real-Time Deployment 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!