Simulink buffer: How do I fix the error "All sample times must be discrete. No continuous or constant sample times are allowed."
Mostra commenti meno recenti
I have a discrete scalar input into a simulink buffer and would like the buffer to output a 100x1 vector of the scalar inputs. However, I keep getting this error and I can't figure out why, because the input into the buffer is discrete.
Risposta accettata
Più risposte (2)
Ahmed Alfadhel
il 14 Nov 2018
Modificato: Ahmed Alfadhel
il 14 Nov 2018
0 voti
Hello ,
This error is persistent even when I changed the smple time to 0.1 of the input port.
Guys your help plz.


1 Commento
dr446
il 14 Nov 2018
Arif Hussain
il 29 Lug 2021
0 voti
I changed sample time of block from 0 to 0.001 and it works perfectly.
2 Commenti
Unza Muhammad
il 8 Dic 2022
brother which block?
Matthew Schweiss
il 28 Mar 2026 alle 3:56
I just encountered this issue myself.
The problem is there is some block that leads into the buffer block that has the "sample time" set to 0.
That is what causes the error.
That may be the "From Workspace", "Sine Wave" block, or something similar.
Categorie
Scopri di più su Buffers, Switches, and Counters in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

