Hey there guys !
Well i'm trying to send some floating point data type from a simulink model to arduino but i don't really get
any meaningful data at all but when I try to send data type of uint i don't have any problem .
what should i do ?
Hey there guys !
Well i'm trying to send some floating point data type from a simulink model to arduino but i don't really get
any meaningful data at all but when I try to send data type of uint i don't have any problem .
what should i do ?
Erfanh:
what should i do ?
showing us your code for a start would help ![]()
(you might be sending float in formats that are incompatible, either big-endian + little endian, or 64 bits versus 32... many things can go wrong )
well i am trying to transfer data from pc to arduino 1 and then from arduino 1 to another arduino say arduino 2 and from arduino 2 back to the pc and that data is a float just like
a sine wave like this :
with this settings:
and there is the setting for the 1 arduino :
Serial receive :
serial transmit :
and in Arduino 2 i have :
receive :
Transmit :
J-M-L:
showing us your code for a start would help(you might be sending float in formats that are incompatible, either big-endian + little endian, or 64 bits versus 32... many things can go wrong )
Do not assign the same port to more than one Serial Transmit block.
Do you understand the difference between "write" and "print"? Go and read up on that.