#Simulink#code generation#Buffer#Dspace

6 Ansichten (letzte 30 Tage)
Nits
Nits am 24 Jul. 2019
Kommentiert: Nits am 30 Jul. 2019
Error message: All sample times must be discrete. No continuous or constant sample times are allowed.
I am getting the above mentioned error while building the model in simulink. This error pertains to buffer block which is receiving bitwise data from Dspace via RS232 serial port. Please let me know how to get rid off this error. Thanks in advance.

Antworten (1)

Chidvi Modala
Chidvi Modala am 30 Jul. 2019
I assume that you are using a constant block inside your model. By default, the sample time of constant block is 'inf'. Try changing the sample time of constant block.
  1 Kommentar
Nits
Nits am 30 Jul. 2019
Thanks for your answer. I have resolved the issue but it was pertaining to sample time of other blocks and not constant block.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by