Synchronize Serial communication between simulink and Arduino

3 views (last 30 days)
Nathaniel Goldfarb
Nathaniel Goldfarb on 3 Dec 2021
I am trying to build a model that sends two floats over serial to an arduino and waits for two values to be sent back. For now am trying to send back the same values to ensure that the arduino is reading the values correctly. I think right now I am having a problem were simulink is sending the values so fast that its overflowing the buffer and the arduino is reading garbage.
Is is possible to trigger a Simulink serial send command when it reads a value from the Serial port?

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by