LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text to binary, binary to text.

Ok, we got it to work now that we got rid of the dynamic data. Thanks!

 

As of now though, we can only read one character at a time. We're thinking that somehow creating a new element in the array every 8th bit sent would be a soulution, but again, we don't know how. 

 

Thanks

 

This is the current state btw:

 

project.png

 

0 Kudos
Message 11 of 12
(815 Views)

Yes, you are very close Smiley Happy

 

You need to use a shift register to hold either the array of U8s or the string in memory and append to it every time you get a new character. Also, the outer for loop is completely unnecessary. Remove the outer for loop and use a concatenate string like this:

2014-12-03_15-00-34.png

 

Each time the loop runs, it will add the new character to the end of the read string. You should be able to modify your VI to do this.

 

I suggest you have a look at some of the LabVIEW training - you're struggling here with some pretty basic concepts that would easily be covered with some of the free training materials that NI provides. http://www.ni.com/getting-started/labview-basics/


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 12 of 12
(798 Views)