The timing of Buffers are off.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The output timings of Buffers when the Buffer has to cut the incoming message are off. Here is a Minimal Working Example. The out.simout1.Time should be [0 160] not [0 133.3333].
0 commentaires
Réponses (2)
Yuvraj Singh
le 13 Jan 2023
Modifié(e) : Yuvraj Singh
le 13 Jan 2023
Hi Lóránt,
I understand you have a Simulink model and one of the outputs of “To Workspace” Block gives an unexpected result according to you.
Simulink automatically computes the appropriate sample rates for the blocks connected to the source blocks. You may notice “out.simout1” has a sample rate/period of 133.3333 . So, the block is sampled at the multiples of 133.3333 second and simulation stops at 160. Hence 133.3333 second is the last time it was sampled during the 160 second simulation.
Follow the link below to better understand sample rates and how to inspect them.
I hope it helps you.
-Yuvraj
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!