CHAPTER 12. GAUGING STATION
93
LabVIEW Techniques
Once your Vision Assistant script is packaged into an Express VI the LabVIEW
project is almost done, however, interpreting and using the output of the
Caliper
step takes some care. See
to learn how to
extract specific values from the 2-D array output of the
Caliper
step.
Take a screen capture of Figure 12.3 on page 90 and then paste this onto the
front-panel of your application. Place frameless numerical indicators near the
dimensional symbols as shown in Figure 12.1 on page 87 and then connect these
indicators to your Vision Assistant Express VI.
12.2
Development Tips
Representative Images
•
Set up the camera on a table-top camera copy stand with an optically
black background. Adjust the field of view to accommodate a single
component. Allow for the component to tilt and translate somewhat. Set
all of the camera attributes to manual, and adjust the brightness, contrast,
and exposure to ensure that the background looks completely black while
the foreground component maintains good contrast.
•
Use a relatively high resolution, e.g., 1280
×
720, but do not go too high,
otherwise myRIO may not have enough memory to perform the needed
grid calibration tasks. You could also convert the LabVIEW project to
target the desktop and thereby eliminate any concerns about memory use.
IMPORTANT
:
All of the ROIs that look for specific object features
depend on a specific resolution, therefore you need to make this choice
at the beginning of development. Changing the resolution after the Vi-
sion Assistant script is complete requires editing of nearly every step!
•
Collect one image in which the component bottom and right-side edges
are aligned with the pixel array.
•
Collect additional images in which the component is translated and tipped
to the right and left.
•
Make additional cutouts that contain “defects,” e.g., incorrect bevel angle,
slot width or depth, and hole radius.
14
(6:54)
Содержание 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...