byteconverter&usb-serial?

Status
Not open for further replies.

koep

Member
Licensed User
Longtime User
Hi All!

I'm trying to convert received bytes in new_data event to doubles with byteconverter but I keep getting compile error in DoublesFromBytes saying missing parameter.

What is the proper way convert received 2 bytes to a double or 4bytes to long/int?

Rgds,
Tapio
 

Stephaner

Member
Licensed User
Longtime User
Hello
This code doesn't make the job for me. I mean that I Simply want to convert an array of 8 bytes into a double value.
This code gives an array of doubles.
My compiler returns an error when compiling.

My aim is to display the real value in decimal.

Thanks for your help.
Stephane.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
This code gives an array of doubles.
and the 1. of them is the value you want

Away from that you should create a new thread in the questionsforum for ANY question/issue your have.
 
Upvote 0
Status
Not open for further replies.
Top