
24
CHAPTER 3. DESIGN PATTERN FOR MACHINE VISION APPLICATIONS
• Set the "stop webcam" flag
• Perform other needed activities such as writing
closing comments to a log file and closing open files
(qsm) clean up
• Return onboard devices to inactive states, e.g., analog
outputs, digital outputs, PWM
• Shut down external devices
(myRIO) clean up
• Check "stop webcam" flag, stop webcam if set
• Get next available webcam image
• Optionally flip the image when using camera stand
• Write webcam image buffer reference; buffer
memory allocated on first call only
(image) get
• Release the QSM state queue
• Deallocate all image buffer memory
• Stop the QSM while-loop
(qsm) shutdown
Figure 3.6: State sequence and activities for the MVA shutdown task.
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...