LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

working with hexadecimal values

So I have tried to find a solution for this problem but haven't found anything.  I would appreciate some help.
I am using to read in values into a buffer.  The values I'm reading in are as follows
value[0]=0x00;
value[1]=0x0D;
value[2]=0x6F;
value[3]=0x00;
value[4]=0x00;
value[5]=0x12;
value[6]=0x88;
value[7]=0x60;
What I want is to then show these values as one line in a cell of a table (so it would look like 000D6F0000128860 in a specific table cell).
I have tried outputting the array in the table but nothing shows up.  I have looked in several of my resources and haven't found anything that helps me out.
Thanks
neemtt
0 Kudos
Message 1 of 2
(2,795 Views)
You could use the sprintf() function with formatter "%02x" to format exactly two hex characters in the buffer.
You can repeatedly call this function in a loop to format the whole line and then you can write the string into the table (make sure that the table cell datatype is set to a string).

Hope this helps.
LDP
0 Kudos
Message 2 of 2
(2,788 Views)