LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Constant to Boolean Array

Hi

 

I need to convert a String constant, consisting of 0's and 1's (NOT a String Array), into a Boolean Array. How can I do that ?

 

Thanks

Jeet

0 Kudos
Message 1 of 5
(4,475 Views)

Hi jeet,

      I wasn't sure if your '0's were ASCII '0's (0x30) or null/zero bytes - the attached VI shows both conversions.

 

Cheers.

Message Edited by tbd on 10-24-2008 07:55 PM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 2 of 5
(4,470 Views)

This is great ! does exactly what I want.

 

Thanks a ton!

 

jeet

0 Kudos
Message 3 of 5
(4,466 Views)
You're welcome!Smiley Wink
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 5
(4,463 Views)

Here is another method.

 

R

 

Message Edited by JoeLabView on 10-25-2008 10:11 AM
Download All
Message 5 of 5
(4,429 Views)