Synchronize Serial communication between simulink and Arduino

5 views (last 30 days)
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)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!