issues about RateTransition block when performed serial communiction on Speedgoat

조회 수: 1 (최근 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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by