08-08-2010 01:09 AM
Can someone have a look at this .vi and tell me why the shift register is not resetting. It is a program i am attempting to write to find the regions of peak information in a psd.
Thanks
Research Student
Solved! Go to Solution.
08-08-2010 01:45 AM
nvm. found the problem. my while loop condition was incorrrect.
08-08-2010 02:22 AM - edited 08-08-2010 02:23 AM
There is more than one problem. You are doing the same array comparisons on the same data and producing the same result with every iteration of the loop. That code belongs before the loop. You should probably check if any of the two results is -1 (=not found) instead to terminate the loop. Also, the two comparisons are complementary, so one should be enough.
You have way too much code! Here's a quick simplification attempt. Modify as needed.
08-08-2010 02:59 AM
Cheers. Thankyou for your help.