01-28-2014 01:56 PM
Hi
How can I convert this string "11110000" to this number (16bit or 8 bit) 11110000. Could you please help me with this?
Thanks?
01-28-2014 02:05 PM
Scan from String using %b as format specifier should work.
01-28-2014 02:18 PM
well I use %8b and %b but it converts the following string "11110110" to 246!
01-28-2014 02:19 PM - edited 01-28-2014 02:25 PM
Change your display format on your indicator to binary. Decimal 246 is b11110110.
EDIT: I read too fast and posted the wrong binary representation originally, sorry.
01-28-2014 02:21 PM
Decimal 246 = 11110110 binary. You just need to change the display format of your indicator to binary. Representation should probably be U8.