#Simulink#code generation#Buffer#Dspace

2 次查看(过去 30 天)
Nits
Nits 2019-7-24
评论: Nits 2019-7-30
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.

回答(1 个)

Chidvi Modala
Chidvi Modala 2019-7-30
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 个评论
Nits
Nits 2019-7-30
Thanks for your answer. I have resolved the issue but it was pertaining to sample time of other blocks and not constant block.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by