02-11-2016 03:10 PM
Hi all,
I would be gratful if someone can help me to solve this issue in my code.
As you can see from the attached code, I have an array with 39 elements, I want to rearrange it again by making the first and end three elements are equal to (-150), the problem is I made condition to make the for loop stop, but it runs only one time and stop suddenly without check the condition, Any idea?? Thanks in advance
Regards
02-11-2016 03:19 PM - edited 02-11-2016 03:23 PM
Hi rawachy,
oh gosh…
Any idea??
A lot of ideas:
- race conditions due to heavy overuse of local variables
- weird logic needs to be defined properly and applied to your data
- not using LabVIEW debugging tools
making the first and end three elements are equal to (-150)
Quite easy when taking you "word by word":
As said before: please define what you are going to do… 😄
02-11-2016 03:39 PM
Hi GerdW,
Thank you so much for your quick support, to be honest, I didn't get your idea.
what I want to do from the attached array is that even when I change the place of element it gives me the three elements in the front and the end respectively? does your picture solved this issue? Thanks again
Regards
02-12-2016 12:31 AM
Hi rawachy,
why did you create this double post instead of sticking with your original thread?
Search for 6 consecutive elements with value "-150", then rotate your array to have the last 3 of them at the indices 0-2…