Data transmission for float variables by uart0

hi everyone

I'm looking for a good alogrithm to send a float variable to a PC by the serial port.

First I have to separate the float variable in bytes to be read to send by the serial port. do i have to send the variables in binary or ascii?? what do you recommend me??

Another problem is in the pc.. if I want to use visual basic to print the value how can I join the bytes to have the real float variable??


thanks

Parents
  • "Another problem is in the pc.. if I want to use visual basic to print the value how can I join the bytes to have the real float variable??"

    No idea! :-(

    This is a Keil forum, not a Microsoft and/or VB forum - so you'll have to read your VB documentation, visit MSDN, and/or find a VB forum for that one.

Reply
  • "Another problem is in the pc.. if I want to use visual basic to print the value how can I join the bytes to have the real float variable??"

    No idea! :-(

    This is a Keil forum, not a Microsoft and/or VB forum - so you'll have to read your VB documentation, visit MSDN, and/or find a VB forum for that one.

Children
More questions in this forum