#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