12-19-2022 07:15 PM
Hi. I need some help. I have 1 array that has a combination of numbers 0 and 1. What I need is, I need to find the combination of number 11. Once it is found it needs to cut the rest of the array.
12-19-2022 07:58 PM
Do you have any experience with problems-solving, programming (using any computing language, even Basic), or "accomplishing a task by following directions"? Without worrying about LabVIEW or any other programming environment, can you tell us, in words, the steps you would do to accomplish this simple task?
If you want to learn LabVIEW, have you considered taking a class (maybe you already are?), looking for tutorial material (and doing a little studying on your own), or finding a mentor and "apprenticing yourself" to her/him? The LabVIEW Forum is not a bad place to come to when you've put in a little bit of work, yourself, and are "stuck", so do a little bit of work and come back when you get stuck.
Bob Schor
12-19-2022 08:51 PM
What is the data type of the array elements (string? U8? Etc.). What is the display format? Binary? Decimal? Something else?
Easiest would be to attach a small vi that's contains typical data in a diagram constant.
12-20-2022 12:26 AM
First of all, you need to provide information as altenbach suggests.
Here, below is my preliminary suggestion.
You can use Search 1D Array and Delete From Array.
12-20-2022 01:42 AM
Yeah.. I managed to do it myself a while ago. Thanks a lot for helping me and the suggestion.
12-20-2022 09:29 AM - edited 12-20-2022 09:30 AM
@User002 wrote:
Yeah.. I managed to do it myself a while ago. Thanks a lot for helping me and the suggestion.
You cannot mark a post that does not show a solution as "accepted solution". Once you post your solution, you can mark that one, so show us what you did. (Maybe we can even offer significant improvements or point to flaws.)
12-21-2022 12:41 AM
This is what I have done. I using array subset to display all the array after matching with number 11.
12-21-2022 08:20 AM
Hi all. I have binary number in array, for example 000101001100010. I need to find array binary number that have 11 inside. Once it matching, it will cut the before number 11. Which is the output for 000101001100010 is 1100010. And the same function for the next array. Sorry for my bad explanation. I hope you guys can give me suggestion to me for continue my code.
12-21-2022 08:32 AM
Hi Humai,
please stick with your thread instead of asking the same in a new thread!
@User002 wrote:
Hi all. I have binary number in array, for example 000101001100010. I need to find array binary number that have 11 inside. Once it matching, it will cut the before number 11. Which is the output for 000101001100010 is 1100010.
In your image you have an input array of U32 integers. How does that relate to a "binary array"?
What exactly has changed to your previous posts?
12-21-2022 09:28 AM
Sorry for my mistake GerdW. For input I right click the array to display as binary. My previous post it has reached my target. I just want to upgrade my code that can find the binary number that has 11, cut the number and give the output that start with 11.