Sending float number to Simulink from Arduino Uno via Serial Communication

1 次查看(过去 30 天)
Hi, I'm trying to send a sensor value from arduino to Simulink, after some calculations sending them back to arduino via Serial Communication. I first started with "Serial Receive" block under "Simulink Support Package for Arduino Hardware" but it didn't work because I guess this block does not support Ardunio Uno (also written in this page) Afterwards I tried to "Serial Receive" block under "Instrument Control Toolbox" but I'm not sure how to send double number. Sensor values are float numbers. I think problem is with data types and data sizes. Can anyone help me with that?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by