
70
CHAPTER 9. POS TERMINAL
Digilent PmodCLS LCD Display
Chapters 26 to 28 of the
NI myRIO Project Essentials Guide
provide a detailed
explanation of the Digilent PmodCLS LCD display using its UART, SPI, or I
2
C-
bus interface as well as LabVIEW demonstration code available at
Project Essentials Guide .zip Files
that you can drop into this project. Study
LCD Character Display Interfacing Theory
to learn how to write escape se-
quences to configure and control the LCD display and then study one of these
block diagram “walk-through” videos depending on the serial bus that you wish
to use:
or
T
IP
:
Refer to the NI myRIO connector diagrams in Appendix B on
LabVIEW Techniques
Some tasks should execute only one time after a Boolean flag sets. For example,
the
barcode in view
flag is clear when no valid barcode is visible and is set
the entire time a valid barcode is visible. However, the
update shopping
cart
task should execute one time
only
when the
barcode in view
flag
first
changes
from clear to set. Study
to learn how
to create a subVI that detects when a flag changes state.
Use the
Search 1D Array
function to look up an item code in the inventory
“item codes” array. This function returns the index of the matching element or
−
1
when no match is found. This index may then be used for the
Index Array
function.
Use the
IMAQ Overlay Multiple Lines 2
VI to create the barcode bounding
box from the “Bounding Box” element of the barcode
Data
custom control. As
of this writing the VI throws an error that states that the bounding box does not
contain enough points. However, simply disconnect its error cluster output and
you should find that the overlay works properly anyways. Experiment with the
Width
and
Color
inputs to produce a satisfactory bounding box.
http://www.ni.com/myrio/project-guide
http://www.ni.com/academic/myrio/project-guide-vis.zip
(10:36)
(3:44)
(4:23)
(4:32)
(6:58)
Summary of Contents for NI myRIO
Page 1: ...Ed Doering NI myRIO Vision Essentials Guide...
Page 2: ......
Page 11: ...Part I Machine Vision Fundamentals...
Page 12: ......
Page 31: ...Part II Introductory Machine Vision Projects...
Page 32: ......
Page 38: ...32 CHAPTER 4 CAMERA SETUP...
Page 44: ...38 CHAPTER 5 STEREO VISION...
Page 61: ...Part III Machine Vision Application Projects...
Page 62: ......
Page 72: ...66 CHAPTER 8 COIN COUNTER...
Page 86: ...80 CHAPTER 10 KEYED OPTICAL LOCK...
Page 92: ...86 CHAPTER 11 DMM TEST STAND...
Page 134: ...128 CHAPTER 17 MARBLE SORTER...
Page 135: ...Part IV Appendices...
Page 136: ......
Page 143: ...B MXPandMSPConnectorDiagrams Figure B 1 MXP myRIO eXpansion Port connector diagram...
Page 144: ...138 APPENDIX B MXP AND MSP CONNECTOR DIAGRAMS Figure B 2 MSP miniSystem Port connector diagram...
Page 148: ...142 APPENDIX D BUILD A STAND ALONE APPLICATION...
Page 149: ...E MarbleSorterConstructionDetails To be continued...
Page 150: ...144 APPENDIX E MARBLE SORTER CONSTRUCTION DETAILS...