How to transmit several float from simulink to arduino mega
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
good morning
i am a french teacher and i would like to know how to send 3 float from simulink to arduino.
I want to use the transmit block from simulink suppport package for arduino hardware
may i use single format or array of bytes?
I tell you that i understood the opposite passage that uses the union structure in arduino code to send floats from arduino to simulink.
In fact i would like to know the arduino code and the blocks to put in place in simulink and their setting.
thanks a lot for your anwers
0 comentarios
Respuestas (1)
Munish Raj
el 25 de Feb. de 2019
The data can the sent to arduino from simulink as an array
This can be done using the Tapped delay block in Simulink.
When this is done, the serial port will send the subsequent data bytes continuousy.
The Read protocols on arduino will treat these as unique values.
Ver también
Categorías
Más información sobre Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!