01-18-2023 10:30 AM
I'm building something which receives bits over a wire, and I want to buffer those incoming bits and then search the buffer for a particular sequence of bits.
This is just a first step towards that. And there are almost certainly things that are wrong or not best practice with it, it is simply what I have managed to cobble together as someone trying to figure out LabView for the first time.
In terms of bit order, I tend to work MSB as my most left bit out of habit, but that isn't really important here as I could ammend it to work either way. The most important thing has been solved in allowing me to grab from the array and get it into a format where I can do a comparison against a defined bit sequence.
01-18-2023 10:37 AM - edited 01-18-2023 11:28 AM
@lv_newb wrote:
The most important thing has been solved in allowing me to grab from the array and get it into a format where I can do a comparison against a defined bit sequence.
You can cast the U8 array to a string and search for the binary pattern.
You can also do the comparison directly on the U8 array, of course.
01-18-2023 10:54 AM
hmmm, interesting, I swear that I tried casting and it didn't work. Thank you for the info. At the moment there is just so much that I don't know, I am fumbling around in the dark and occassionally getting lucky.