From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert a string into individual binary bits

Solved!
Go to solution

i need some basic help, a string data comes from microcontroller to labview , String consist 8 bytes"11110111" that represent logic state of a Port.

now i want to convert this string into 8 bits binary data and glow up 8 led's according to zeros and one's. any example chart for me to do this..

I do it my self but no sucess, LED's glow wrong

0 Kudos
Message 1 of 4
(3,628 Views)

Use 'String to Byte Array' to get and array of 8 Ascii bytes.  These Ascii byte values will be either 48 (0) or 49 (1) Compare each element in the array to 49 to produce an array of boolean.

 

Capture.PNG

Message 2 of 4
(3,621 Views)

please can u provide Blockdiagram

0 Kudos
Message 3 of 4
(3,616 Views)
Solution
Accepted by topic author kg300
0 Kudos
Message 4 of 4
(3,607 Views)