05-05-2024 02:39 PM - edited 05-05-2024 02:41 PM
Hello
I have a project where I need to detect the spring in the handle.
The spring should be in the middle of the handle in a small groove. If it is inside the handle but not in the groove but next to it, the setting is wrong. If the spring is not inserted into the handle it is also wrong and the product must be rejected (pictures below)
The placement of the pitcher or the handle is mixed
I tackled the task by first sensing the handle of the jug itself. Then I set the coordinate system and the mask. The problem started at the spring detection step. Namely, the detection window (green box) does not follow the RIO. When the jug moves a little further from the center, the window no longer follows. Therefore, I have to adjust the RIO manually, despite the fact that I have the detection set to follow the coordinates.
I wonder how, after the RIO spring step, the detection window can follow the mask? I'm also interested in what the next steps are. Is it necessary to create a labview IV program that selects handles for which the spring is not inserted or is inserted incorrectly?
As you can see I am new to this.
Thanks for all the help
05-06-2024 08:32 AM
For me it works, probably you forgot to set rotation or coordinate System for reposition.
The Pattern Matching Step Setup:
Then Coordinate System:
And finally Mask:
Not sure why do you need Coord System and Masking twice as shown on your screen shot.
05-06-2024 10:34 AM