LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I load a list of hex numbers into an unsigned 8 array?

Solved!
Go to solution

Here is a couple of ways to do the whole thing, with the numbers before and after:

 

19569iF6BAFF4E47A6FE88

- tbob

Inventor of the WORM Global
0 Kudos
Message 11 of 17
(1,173 Views)

The CAN controller wants a hex message, so in the U8, I plug in 3 22 28 1C, each in a separate field.  Here is the test file, a simple text with those messages (minus 3 22)

0 Kudos
Message 12 of 17
(1,170 Views)

tbob, thanks, but what I want is the values that are in the input to be in the output array.  03 22 string converts to 03 34, but I want 03 22 (or similar) in my U8 array

0 Kudos
Message 13 of 17
(1,160 Views)
Solution
Accepted by topic author cnassouri

Try this

 

Download All
Message 14 of 17
(1,148 Views)

That is absolutely perfect...thank you so much!

 

Crystal-

0 Kudos
Message 15 of 17
(1,137 Views)

@cnassouri wrote:

tbob, thanks, but what I want is the values that are in the input to be in the output array.  03 22 string converts to 03 34, but I want 03 22 (or similar) in my U8 array


If you right click on the output array and select Display Format, then select Hexidecimal display, you will see 03 22 etc.  The number is the same internal to the computer.  The display just shows up differently, it won't change the data you are sending at all.  Actually, the computer stores 00000011 00100010 and sends that.  Change the display to binary to see that display type.

- tbob

Inventor of the WORM Global
Message 16 of 17
(1,133 Views)

Thank you,  I was breaking my head over this for a couple of days.  Now I have two ways, appreciate all the help.

 

Crystal-

0 Kudos
Message 17 of 17
(1,130 Views)