Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Find Circular Edge ROI Iteration

Capture.PNG

Hello,

Please see the image above. I am trying to cycle through evenly spaced ROIs after acquiring a starting XY position from previous steps to search for a circular object. For some reason, the above loop sporadically gives me "You supplied an insufficient number of points to perform this operation" error, and I have no idea why, as I seem to be inputting everything that the VI asks for (in annulus form). Any suggestions?

 

Thank you,

KP

 

 

*EDIT* Also, if I place a probe at the ROI descriptor I input into Find Circular Edge, I get perfectly valid ROIs. See below:

 

Capture2.PNG

0 Kudos
Message 1 of 5
(4,006 Views)

Okay, now I don't know what's going on. Even when making a VI with the assistance of Vision Builder, I get the same error. What's going on here?

 

Capture.PNG

 

 

0 Kudos
Message 2 of 5
(3,997 Views)

Okay, working through this, it seems that the error only comes up when VI *doesn't* find a circle within the boundaries of the annulus. If it does find something, it doesn't give the error. What gives?

0 Kudos
Message 3 of 5
(3,983 Views)

What version of LabVIEW are you using? There is a known issue in versions prior to LabVIEW 2010, corresponding to CAR #230437 where certain image processing functions would throw that error incorrectly when they couldn't find a match for their function in the image. It sounds like you are running into the same issue. If you are able to upgrade to LabVIEW 2011, or LabVIEW 2010 SP1, that might clear up the problem. If you are not able to upgrade, you could use Clear Errors to workaround the issue. Let me know if you have more questions. Have a great day!

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 4 of 5
(3,976 Views)

palanski,

 

               It's always worth a shot to try a newer version of LabVIEW if someone suspects that the issue is a bug. You can try it out on the 30-day eval of LabVIEW at ni.com/trylabview. You should also be able to download the 30-day eval of Vision Builder. LabVIEW 2011 and 2010 can live on the same computer. All you would need to do is open and run your VI in 2011 (don't save anything) and see if the issue goes away. If it doesn't then you can uninstall 2011 and as long as you didn't save any changes then you should be able to open it in 2010 just fine. If you are really worried, then using source code control on your VIs can solve all your issues since you would be able to revert any changes made. Does 2011 solve your issue?

 

0 Kudos
Message 5 of 5
(3,966 Views)