
CHAPTER 3. DESIGN PATTERN FOR MACHINE VISION APPLICATIONS
15
Data highway:
The
data highway
is a combination of a LabVIEW
cluster
and a
while-loop shift register. The cluster is a collection of front-panel controls stored
as a “type def” (type definition); any change to the type definition propagates
throughout the entire project. A cluster constant initializes the while-loop shift-
register and defines the data highway “lanes.” Because the data highway passes
through the case structure subdiagrams, each QSM state can read and write
values that in turn can be accessed by every other state.
1.
– Change a data highway lane name: edit the
type def, and then observe the change in the bundle/unbundle functions.
2.
– Create a new data highway lane: edit the type def,
bundle and merge, and access in another state.
3.
– Remove an unused data highway lane: edit the
type def, delete the control, remove the element in the cluster bundle.
4.
– Add a custom lane: create a control from the
Vision Assistant Express VI indicator output, convert to type def, save
type def as a control, add the control to the data highway, merge the Vision
Assistant Express VI output onto the data highway, and then retrieve the
value in another state.
“state” type def:
The
state
enumerated data type control selects the subdiagram
in the case structure.
state
is a type definition, therefore any modifications prop-
agate throughout the project. Changing a state name also changes the name in
the case-structure selector. The
state
and the case-structure are closely related,
therefore these videos show how to edit both at the same time.
1.
– Review the standard states (qsm, myRIO, image), the
example application-specific state, and the expansion states.
2.
– Change a state name: edit the subdiagram label,
open the state type def, edit the enumerated datatype control, observe the
changed name in the case-structure subdiagram.
3.
– Reposition a state in both the state type def and in
the case structure’s subdiagram ordering.
12
(0:54)
13
(1:27)
14
(0:47)
15
(2:58)
16
(2:18)
17
(1:09)
18
(1:25)
Содержание 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...