LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Format into string (Labview web ui builer)

Solved!
Go to solution

How can I use “Format into string ”(Labview web ui builder) to convert a string into binary or Hexadecimal ?

0 Kudos
Message 1 of 2
(10,770 Views)
Solution
Accepted by LawrenceChong

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:

 

Convert Hexadecimal Numbers.jpg

 

Regards,

 

Andrew Brown

Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(10,760 Views)