01-27-2009 10:03 AM
Hello
I have a string 000F45FF i want to convert into binary , how to do that
result : 11110100010111111111
01-27-2009 10:10 AM - edited 01-27-2009 10:16 AM
I would have a look at the 'Hexadecimal Sting to Number' VI or 'Scan from string' VI... binary display can be set through right clicking on the indicator, Display Format, Binary.
01-27-2009 10:15 AM - edited 01-27-2009 10:16 AM
That may not work if the string goes beyond a 64-bit integer. To OP: Are the ones and zeros supposed to be the characters "1" and "0", or something else? Any reason you're dropping the zeros at the beginning? Does the string have a maximum length, or any length?
Also, does the input string consist of the characters "F", "4", etc., or are you displaying the string in hex mode?
01-27-2009 10:22 AM
Hello
0 and 1,s are not character actually in my application i am getting the data from controller if 0 that channel is off and 1 is On. So i have total of 20 channels depends on data i can show which bit is on and off
01-27-2009 10:26 AM
01-27-2009 10:30 AM
01-27-2009 10:43 AM - edited 01-27-2009 10:46 AM
here an ex , but i don't know if it's the best method
wow !!!so much posts , yes you have to take care if you need more than 32bit resolution !
01-27-2009 10:55 AM
i forgot FP