104
CHAPTER 14. COMPONENT PLACEMENT INSPECTOR
The
Color Matching
ROIs must be placed relative to a coordinate system
derived from a reference feature on the board to permit the vision script to adapt
to some baseboard rotation and translation. Use the following sequence of steps
to place the origin of the coordinate system at the lower-left corner of the board:
1. Find the vertical edge that corresponds to the left side of the board; see
to learn how to find a straight edge in a region of
interest (ROI),
2. Find the horizontal edge that corresponds to the bottom of the board
using another
Find Straight Edge
step,
3. Locate the intersection of these two lines as the bottom-left corner of the
board to serve as the reference point for the coordinate system. See
to learn how to use the
Caliper
step to find
the coordinates of the intersection of these two lines, and
4. Define the local coordinate system with its origin at the bottom-left corner
of the board and aligned with the board’s bottom edge; see
for details.
All ROIs you that you place in subsequent script steps reside in this local coordi-
nate system and will automatically follow the board as it translates and rotates.
LabVIEW Techniques
The following LabVIEW techniques are required for this project:
•
– Use an
Invoke Node
to reset the numerical
front-panel indicators when the application starts up.
•
The
Match Flag
indicator produced by the
Color Matching
step is a
Boolean array. Create an indicator directly from this array output to
show the inspection results for all of the components of a given color. A
correctly-placed part generates a “true” value.
•
Use a Boolean
Not
function wired directly to the
Match Flag
array to
make placement errors appear as “true” values, convert this array to an
integer array with
Boolean To (0,1)
(the true/false values now appear as
0/1 values), and then sum the array elements to a single numerical value
(2:25)
(2:04)
(2:02)
(1:49)
Содержание NI myRIO
Страница 1: ...Ed Doering NI myRIO Vision Essentials Guide...
Страница 2: ......
Страница 11: ...Part I Machine Vision Fundamentals...
Страница 12: ......
Страница 31: ...Part II Introductory Machine Vision Projects...
Страница 32: ......
Страница 38: ...32 CHAPTER 4 CAMERA SETUP...
Страница 44: ...38 CHAPTER 5 STEREO VISION...
Страница 61: ...Part III Machine Vision Application Projects...
Страница 62: ......
Страница 72: ...66 CHAPTER 8 COIN COUNTER...
Страница 85: ...CHAPTER 10 KEYED OPTICAL LOCK 79 Figure 10 3 Typical expected results for the Geometric Matching step...
Страница 86: ...80 CHAPTER 10 KEYED OPTICAL LOCK...
Страница 92: ...86 CHAPTER 11 DMM TEST STAND...
Страница 134: ...128 CHAPTER 17 MARBLE SORTER...
Страница 135: ...Part IV Appendices...
Страница 136: ......
Страница 143: ...B MXPandMSPConnectorDiagrams Figure B 1 MXP myRIO eXpansion Port connector diagram...
Страница 144: ...138 APPENDIX B MXP AND MSP CONNECTOR DIAGRAMS Figure B 2 MSP miniSystem Port connector diagram...
Страница 148: ...142 APPENDIX D BUILD A STAND ALONE APPLICATION...
Страница 149: ...E MarbleSorterConstructionDetails To be continued...
Страница 150: ...144 APPENDIX E MARBLE SORTER CONSTRUCTION DETAILS...