LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a string to 1D Binary Array

I need to take a input string that is text for instance my name "Ben," and have the output be a 1D array of binary, so this output would be the array
FTFFFFTF TFTFFTTF FTTTFTTF
I have been able succesfully create this array for single characters, but when I try to use a for loop to concatinate one characters ASCII representation to another, LabVIEW doesn't respond.

So once again heres what I need
String of ASCII characters converted to a 1D array of binary.
Any help would be greatly appreciated.
0 Kudos
Message 1 of 3
(5,388 Views)
The String to Byte Array function does what you want.
 

Message Edited by Dennis Knutson on 02-02-2007 07:42 PM

Download All
Message 2 of 3
(5,383 Views)
OK, yo don't define what you mean by "binary". In programming, one way or another everything is "binary", depending how you look at it, right?
 
SInce you are talking about TFTT..., maybe you are looking for an 1D array of booleans? In this case, you simply would expand on the suggestion by Dennis above.
 

 
If the last two posts don't provide the solution you need, please be more specific on the desired output. There are many other possibilities. 🙂
 
 

Message Edited by altenbach on 02-02-2007 07:09 PM

Message 3 of 3
(5,376 Views)