issues about RateTransition block when performed serial communiction on Speedgoat

2 次查看(过去 30 天)
Hello everyone,
I'm reaching out to seek assistance with a model I've built for receiving information from a sensor using RS-232 serial communication on Speedgoat. The sensor's sending frequency is approximately 100Hz, although it's not fixed.
Regarding the block parameters, I have set the sample time of the Legacy Serial Read block to 0.001s, the FIFO Write block to 0.001s as well, and the FIFO ASCII Read block to 0.01s. There is also a RateTransition block that connects the FIFO Write and FIFO ASCII Read blocks for rate transition.
While debugging the model, I didn't encounter any error messages. However, when I attempted to run it on the target, it failed with no error message porvided
I would greatly appreciate any assistance or insights that anyone can provide.

回答(1 个)

Dimitri MANKOV
Dimitri MANKOV 2024-1-3
Hi Yunchao,
Could you open the Diagnostic Viewer on the bottom of your Simulink model, and select the correct log (Build) as shown in the picture below? This should provide you with more details:
Best,
Dimitri
  2 个评论
Yunchao
Yunchao 2024-1-3
Thank you for your assistance earlier. I managed to resolve my previous issue by adjusting the sample time for FIFO write to match FIFO read. However, I've encountered a new problem: I'm observing unexpected abrupt signals when running the model. I'm confident that these values cannot be generated by the sensor, and I'm unsure where they originate from. Could you please help me with this new issue?
Best,
Yunchao Zhu
madhan ravi
madhan ravi 2024-1-4
Like Dimi mentions, post a screenshot of your Daignostics Viewer of your Simulink Model after you run the model. It helps others to debug the problem.

请先登录,再进行评论。

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by