issues about RateTransition block when performed serial communiction on Speedgoat

2 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Dimitri MANKOV
Dimitri MANKOV el 3 de En. de 2024
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 comentarios
Yunchao
Yunchao el 3 de En. de 2024
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 el 4 de En. de 2024
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.

Iniciar sesión para comentar.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by