LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Byte Arry to Number

Hi everyone!

 

I'm having some problems connecting an Arduino Leonardo via I2C to a myRio. I have a sensor connected (mandatory) to the arduino and I send data using I2C to the myRio. The problem is that I receive the data in Bytes and I want to know if it's possible to convert them into a number.

 

Thanks!

0 Kudos
Message 1 of 3
(2,687 Views)
Please provide more info on what data type you are receiving and with sample data.
Thanks
uday
0 Kudos
Message 2 of 3
(2,664 Views)

Generally, "bytes" is probably a string. There are many number representations (integers, signed, unsigned, 8, 16, 32, etc. bits, SGL, DBL, complex and even arrays of those). As a first step you need to know what the target representation is. Do you have any documentation? How many bytes do you receive per number? Can the values be negative?

0 Kudos
Message 3 of 3
(2,655 Views)