CHAPTER 9. POS TERMINAL
69
(a) Representative images
(b) Vision Assistant script
(c) LabVIEW project file set
9.1
Technical Approach
NI Vision Assistant Script
NI Vision Assistant provides the
Barcode Reader
step as a flexible and easy-to-
use method to detect 1-D barcodes from among ten different standards including
“EAN 13” (European Article Number) and the essentially equivalent “UPC-A”
(Universal Product Code). This step can even detect multiple barcodes of differ-
ent types, all within the same image. The
Barcode Reader
step is scale invariant
(the barcode can be any size) as well as rotation invariant (the barcode angle does
not matter); the only requirement is that the barcode must be in focus with suffi-
cient spatial resolution to resolve the black and white bar pattern. Study
to learn how to set up the
Barcode Reader
step.
The Vision Assistant Express VI offers two indicators for the
Barcode
Reader
; use the
Barcodes
output. This output is an array because the reader
can read multiple barcodes at once. Use the following techniques to interpret
the barcode output:
1. Use the
Index Array
function to retrieve a single barcode and connect this
to a custom control in the data highway,
T
IP
:
Use the “Quick Drop” shortcut (Ctrl + space bar) to look up
and place a LabVIEW element by name. See Appendix C on page 139
for more LabVIEW tips.
2. The “Data” element of the barcode output is a string that contains the nu-
merical code. Use the
Empty String/Path?
function to determine whether
or not a valid barcode is in view, and
3. Use the
Decimal String To Number
function to convert the “Data” element
string to an
[I64]
integer; wire a zero-valued constant of this data type to
the
default
input.
(1:29)
Содержание 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...