Sending float number to Simulink from Arduino Uno via Serial Communication

1 visualización (últimos 30 días)
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?

Respuestas (0)

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by