Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203540

Re: Converting a string of numbers into an array of booleans

$
0
0

altenbach wrote:

vikingsfan345 wrote:

Ok, I figured it out:smileyhappy:.  I converted the string to an unsigned byte, which I then auto-indexed into a for loop.  I then used the quotient and remainder function and modded each element by 2.  I then used a case structure.  I set 1 as the default, which output false, and had 0 output true.  I then auto-indexed this out of the loop and put a boolean indicator.  P.S. This was only a small part of a bigger assignment.  Part of the problem was that another part of my code was messing everything up.  Thank you so much for the help!


That sounds way too complicated :D

 

Try to simplify it! (e.g. replace the case structure with an "=0", then "right-click...remove" the FOR loop. :D)


Ok, that makes sense.  Thanks.


Viewing all articles
Browse latest Browse all 203540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>