LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hex to 8 bit

Solved!
Go to solution

Hello everyone,

I have been trying to convert 2-digit hex number like FF to 8 bit like 11111111. But, I want to convert 5 of hex number to 8 bit and convert again to string. I think I have a problem at the end. I could not convert to 1X5 array to 1X1 numeric array or string.

FF (11111111), FA (11111010), FB (11111011) ... TO 111111111111101011111011...

Thank you,

Download All
0 Kudos
Message 1 of 5
(2,811 Views)

All your blue thing should be U8. One of your constants is U32.

I would format your numbers with 8 digits, padding with zeroes on the left.

 

If you want to convert to a formatted string consisting of the characters "0" and "1", just format as binary at the end.

 

If you attach your code, fill all controls with typical data and make the values the default before saving. This way we have a better idea what you are trying to do.

 

 

0 Kudos
Message 2 of 5
(2,790 Views)
Solution
Accepted by topic author alpguclu

See if this works for you...

Message 3 of 5
(2,788 Views)

@altenbach wrote:

See if this works for you...


Thank you, it works for me, now I try to understand your diagram on my own.

0 Kudos
Message 4 of 5
(2,781 Views)

@alpguclu wrote:

@altenbach wrote:

See if this works for you...


Thank you, it works for me, now I try to understand your diagram on my own.


If you get stuck, we're here to help.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 5 of 5
(2,737 Views)