10-26-2015 02:18 PM
Hi there:
I'm taking an ASCII input using a String control and then using convert String to Byte Array to get the byte from each character. From there, it is my goal to iterate through the byte array and get the individual bits of each byte so that I can manipulate them. I'm having a hard time figuring out how to do that last part - I've searched a few other topics on this board but they just link to VIs that I don't fully understand. I would greatly appreciate it if someone could point me in the right direction.
Thank you.
Solved! Go to Solution.
10-26-2015 02:24 PM - edited 10-26-2015 02:26 PM
So you're just trying to get at the bits?
I hope this helps clarify:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-26-2015 02:25 PM
10-26-2015 02:26 PM
Yes that is what I'm after, thank you. I guess what I'm confused on is what exactly you did within that loop - I haven't got the slightest idea what those functions are.
10-26-2015 02:28 PM - edited 10-26-2015 02:32 PM
It's a For loop. The tunnel on the left side is set to Auto-Index through the unsigned byte array (so it's looping through each element). The main nodes inside are Byte Array to String and Number to Boolean Array.
I attached a snippet of the code to the original post, too, so you can drag that on to your block diagram if you have 2014 or newer LV.
Become familiar with the LabVIEW palette before you continue. How can you expect to program in the language if you don't know the tools provided?
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-26-2015 02:29 PM
Aha I got it, thank you all - I didn't realize there was a number to boolean array function already!
10-26-2015 02:29 PM