LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HEX Strings change to Octal

Solved!
Go to solution

The string which show as Hex, I want to change it to Octal data.

How to do it?

 

0 Kudos
Message 1 of 6
(2,927 Views)
You need to cast it to numeric and then format it into string using %o format or similar. Is the string always exactly 4 bytes?
0 Kudos
Message 2 of 6
(2,919 Views)
Exactly 3 bytes. Can you give me a vi sample ?
0 Kudos
Message 3 of 6
(2,913 Views)
Solution
Accepted by topic author orlando111

I find way to improve it.

Do you have another way?

0 Kudos
Message 4 of 6
(2,907 Views)
That will work, but your numeric array is being displayed as hexadecimal not octal like you asked.  You can change it to Octal using the dispaly format dialog.
0 Kudos
Message 5 of 6
(2,890 Views)
you can change the properties .
0 Kudos
Message 6 of 6
(2,884 Views)