Transmitting Floating Point Through Serial on F28335

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by squek on Mon, 02/20/2012 - 03:16 

 

Can Anyone show me how to transmit floating point through serial on F28335?

Thank you

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2020

    Submitted by Anders89 on Mon, 02/20/2012 - 21:35.

     

    Hi Squek, Is scaled fixed-point OK? What is the highest and lowest number you want to transmit? Do you only want to transmit? How many bits of precision do you need?

     

    The easiest way is to just connect the floating point value to a convert-to-string block connected to a serialPortWrite block as in the attached diagram.

    serialFloatTx.png

     

     

    Unable to find an attachment - read this blog