LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string to binairy (12 --> 1100)

I'm wondering if there a function in labview that converts a decimal string into a binaire number..
 
for example 12 := 1100
 
Or is there a mod function in labview 9 mod 2 = 1 --> 8/2=4 what's left is the 1 (8+1), so i can make an algoritm..
 
 
I hope you can help me,
 
Marten
0 Kudos
Message 1 of 2
(2,373 Views)

You can change the string to a number (must be a U32, U16 or U8)  and then change the radix on your indicator to show the number as binary.  Change the radix by right clicking the indicator and selecting properties.  Under the format and precision tab, you can select binary.

 

The function you require for performing the mod on a number is located in the numeric pallet and is called quotient & remainder.

0 Kudos
Message 2 of 2
(2,362 Views)