08-16-2012 04:35 AM
How can I use “Format into string ”(Labview web ui builder) to convert a string into binary or Hexadecimal ?
Solved! Go to Solution.
08-17-2012 02:14 PM
Hello LawrenceChong,
You can use the Scan From String Function in the Web UI Builder to pull out hexadecimal numbers from a string. A format stringof {0:x} reads out a single hexadecimal number to an integer. You can use other String Functions in the Web UI Builder to convert from numbers to strings. Unfortunately, you cannot currently convert between binary numbers and strings in the Web UI Builder.
I've attached a basic Web UI Builder VI program (.vix) that demonstrates conversion from a string to a hexadecimal number using the Scan From String Function. The contents of this program are also pictured below:
Regards,
Andrew Brown