troubleshhot.aia (380.2 KB)

Hello, MIT community. I have a robot sending me lots of data, and I want to use some and graph it. Currently, the data I receive is in decimals, and I try to transform it in HEX to combine it then since I am receiving it in a 1byte ID - 2-bytes data structure. Overall I received 48 bytes. The issue is in Screen2 of the .aia file.

An example of the data is shown at the bottom of the screen.

My negative numbers are transformed correctly but my positive numbers are not when using the function convertnumberbase10tohex.

0x05 comes as decimal 5 determines first data

the next 2 bytes if negative correct transformation, if positive wrong transformation

I haven't set up the graph yet.

After awhile the app slows down and the data listed becomes disorganized

The 2 bytes after 5 is the timestamp sent by the robot.

Once I get the conversion correct I can then store the values in their own lists and graph them separately.

Any help is greatly appreciated.

Warm thanks