05-13-2015 08:58 PM
Here is a screen shot & VI
05-13-2015 09:06 PM - edited 05-13-2015 09:07 PM
Neither of your attached VI's have the data saved into the string as a default. They are still empty. So I'll look at your screen shot that now shows the string.
The reason is because the function you are using is intended to look for a single number and treat it as a decimal whole number. You have a space which means the first number has ended.
You need to strip the spaces out of the string before converting. Then you need Scan from String with %b has the format string.
05-13-2015 09:18 PM
I want the number to be 1000101011111 not 4447
05-13-2015 09:25 PM
Then change the display format of the numeric indicator to binary instead of decimal.
You dont actually expect a string of "11111111" as a series of 1's in binary to be converted to the number 11,111,111 (11 million +) in decimal, do you?
05-13-2015 09:43 PM
No
Iexpect a string of "11111111" as a series of 1's in binary to be converted to the number 11111111 in binary but even after search& replace then scan .. the output is wrong
05-13-2015 09:54 PM
05-13-2015 09:57 PM - edited 05-13-2015 10:00 PM
@MarinaNashaat wrote:
No
Iexpect a string of "11111111" as a series of 1's in binary to be converted to the number 11111111 in binary but even after search& replace then scan .. the output is wrong
The output is NOT wrong. Your indicator is set to display decimal. If you want it to display 1's and 0's, change it to display binary.
Does this make it clearer?
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours