NI Vision Builder 2013教程.pdf

上传人:qwe****56 文档编号:71060498 上传时间:2023-01-31 格式:PDF 页数:99 大小:4.15MB
返回 下载 相关 举报
NI Vision Builder 2013教程.pdf_第1页
第1页 / 共99页
NI Vision Builder 2013教程.pdf_第2页
第2页 / 共99页
点击查看更多>>
资源描述

《NI Vision Builder 2013教程.pdf》由会员分享,可在线阅读,更多相关《NI Vision Builder 2013教程.pdf(99页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、NI VisionNI Vision Builder for Automated Inspection TutorialNI Vision Builder for Automated Inspection TutorialAugust 2013373379L-01SupportWorldwide Technical Support and Product IWorldwide OfficesVisit to access the branch office websites,which provide up-to-date contact information,support phone n

2、umbers,email addresses,and current events.National Instruments Corporate Headquarters11500 North Mopac ExpresswayAustin,Texas 78759-3504USATel:512 683 0100For further support information,refer to the Technical Support and Professional Services appendix.To comment on National Instruments documentatio

3、n,refer to the National Instruments website at and enter the Info Code feedback.20022013 National Instruments.All rights reserved.Important InformationWarrantyNI devices are warranted against defects in materials and workmanship for a period of one year from the invoice date,as evidenced by receipts

4、 or other documentation.National Instruments will,at its option,repair or replace equipment that proves to be defective during the warranty period.This warranty includes parts and labor.The media on which you receive National Instruments software are warranted not to fail to execute programming inst

5、ructions,due to defects in materials and workmanship,for a period of 90 days from the invoice date,as evidenced by receipts or other documentation.National Instruments will,at its option,repair or replace software media that do not execute programming instructions if National Instruments receives no

6、tice of such defects during the warranty period.National Instruments does not warrant that the operation of the software shall be uninterrupted or error free.A Return Material Authorization(RMA)number must be obtained from the factory and clearly marked on the outside of the package before any equip

7、ment will be accepted for warranty work.National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty.National Instruments believes that the information in this document is accurate.The document has been carefully reviewed for technical accuracy.In th

8、e event that technical or typographical errors exist,National Instruments reserves the right to make changes to subsequent editions of this document without prior notice to holders of this edition.The reader should consult National Instruments if errors are suspected.In no event shall National Instr

9、uments be liable for any damages arising out of or related to this document or the information contained in it.EXCEPT AS SPECIFIED HEREIN,NATIONAL INSTRUMENTS MAKES NO WARRANTIES,EXPRESS OR IMPLIED,AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.CUSTOME

10、RS RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER.NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA,PROFITS,USE OF PRODUCTS,OR INCIDENTAL OR CONSEQUENTIAL DAMAGES

11、,EVEN IF ADVISED OF THE POSSIBILITY THEREOF.This limitation of the liability of National Instruments will apply regardless of the form of action,whether in contract or tort,including negligence.Any action against National Instruments must be brought within one year after the cause of action accrues.

12、National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control.The warranty provided herein does not cover damages,defects,malfunctions,or service failures caused by owners failure to follow the National Instruments installation,operation,or mainten

13、ance instructions;owners modification of the product;owners abuse,misuse,or negligent acts;and power failure or surges,fire,flood,accident,actions of third parties,or other events outside reasonable control.CopyrightUnder the copyright laws,this publication may not be reproduced or transmitted in an

14、y form,electronic or mechanical,including photocopying,recording,storing in an information retrieval system,or translating,in whole or in part,without the prior written consent of National Instruments Corporation.National Instruments respects the intellectual property of others,and we ask our users

15、to do the same.NI software is protected by copyright and other intellectual property laws.Where NI software may be used to reproduce software or other materials belonging to others,you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicab

16、le license or other legal restriction.End-User License Agreements and Third-Party Legal NoticesYou can find end-user license agreements(EULAs)and third-party legal notices in the following locations:Notices are located in the _Legal Information and directories.EULAs are located in the SharedMDFLegal

17、license directory.Review _Legal Information.txt for more information on including legal information in installers built with NI products.TrademarksRefer to the NI Trademarks and Logo Guidelines at for more information on National Instruments trademarks.ARM,Keil,and Vision are trademarks or registere

18、d of ARM Ltd or its subsidiaries.LEGO,the LEGO logo,WEDO,and MINDSTORMS are trademarks of the LEGO Group.2013 The LEGO Group.TETRIX by Pitsco is a trademark of Pitsco,Inc.2013FIELDBUS FOUNDATION and FOUNDATION are trademarks of the Fieldbus Foundation.EtherCAT is a registered trademark of and licens

19、ed by Beckhoff Automation GmbH.CANopen is a registered Community Trademark of CAN in Automation e.V.DeviceNet and EtherNet/IP are trademarks of ODVA.Go!,SensorDAQ,and Vernier are registered trademarks of Vernier Software&Technology.Vernier Software&Technology and are trademarks or trade dress.Xilinx

20、 is the registered trademark of Xilinx,Inc.Taptite and Trilobular are registered trademarks of Research Engineering&Manufacturing Inc.FireWire is the registered trademark of Apple Inc.Linux is the registered trademark of Linus Torvalds in the U.S.and other countries.Handle Graphics,MATLAB,Real-Time

21、Workshop,Simulink,Stateflow,and xPC TargetBox are registered trademarks,and TargetBox and Target Language Compiler are trademarks of The MathWorks,Inc.Tektronix,Tek,and Tektronix,Enabling Technology are registered trademarks of Tektronix,Inc.The Bluetooth word mark is a registered trademark owned by

22、 the Bluetooth SIG,Inc.The ExpressCard word mark and logos are owned by PCMCIA and any use of such marks by National Instruments is under license.The mark LabWindows is used under a license from Microsoft Corporation.Windows is a registered trademark of Microsoft Corporation in the United States and

23、 other countries.Other product and company names mentioned herein are trademarks or trade names of their respective companies.Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency,partnership,or joint-venture relat

24、ionship with National Instruments.PatentsFor patents covering National Instruments products/technology,refer to the appropriate location:HelpPatents in your software,thepatents.txt file on your media,or the National Instruments Patent Notice at Compliance InformationRefer to the Export Compliance In

25、formation at for the National Instruments global trade compliance policy and how to obtain relevant HTS codes,ECCNs,and other import/export data.WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS(1)NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF RELIABIL

26、ITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.(2)IN ANY APPLICATION,INCLUDING THE ABOVE,RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS

27、 CAN BE IMPAIRED BY ADVERSE FACTORS,INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY,COMPUTER HARDWARE MALFUNCTIONS,COMPUTER OPERATING SYSTEM SOFTWARE FITNESS,FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION,INSTALLATION ERRORS,SOFTWARE AND HARDWARE CO

28、MPATIBILITY PROBLEMS,MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES,TRANSIENT FAILURES OF ELECTRONIC SYSTEMS(HARDWARE AND/OR SOFTWARE),UNANTICIPATED USES OR MISUSES,OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER(ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER COLLECTIVE

29、LY TERMED“SYSTEM FAILURES”).ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF HARM TO PROPERTY OR PERSONS(INCLUDING THE RISK OF BODILY INJURY AND DEATH)SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE.TO AVOID DAMAGE,INJURY,OR DEATH,THE US

30、ER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES,INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS.BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER

31、MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS,THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRU

32、MENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION,INCLUDING,WITHOUT LIMITATION,THE APPROPRIATE DESIGN,PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.National Instruments|vContentsAbout This ManualRelated Documentation.xChapter 1Introduction to Vision Builder AIVision Builder AI Conf

33、iguration Interface.1-4Elements of the Configuration Interface.1-4Inspection State Diagram.1-6Vision Builder AI Inspection Interface.1-7Running an Inspection.1-7Configuration Interface.1-8Inspection Interface.1-9Chapter 2Checking for the Presence of a PartCreating a New Inspection.2-1Acquiring Inspe

34、ction Images.2-1Defining a Feature on which to Base a Coordinate System.2-2Setting a Coordinate System.2-5Checking for the Cap Using Measure Intensity.2-6Setting the Inspection Status.2-8Testing the Inspection.2-9Saving the Inspection.2-9Chapter 3Inspecting Objects for Correct MeasurementsCreating a

35、 New Inspection.3-1Acquiring and Calibrating Inspection Images.3-1Locating Features to Measure.3-4Measuring Parts of the Gasket.3-7Setting the Inspection Status.3-8Testing the Inspection.3-9Saving the Inspection.3-9Chapter 4Inspecting for Multiple Correct Instances of an ObjectCreating a New Inspect

36、ion.4-1Acquiring Inspection Images.4-1Defining a Feature on which to Base a Coordinate System.4-2Setting a Coordinate System.4-4Measuring the Separation between Connectors.4-4Contentsvi|Inspecting the Fuse Conductor.4-6Making Logical PASS/FAIL Decisions.4-9Setting the Inspection Status.4-10Testing t

37、he Inspection.4-11Saving the Inspection.4-12Chapter 5Inspecting an Object that Spans Two Image FramesCreating a New Inspection.5-1Acquiring Inspection Images from Two Cameras.5-1Acquiring and Calibrating the Image of the Left Edge.5-2Acquiring and Calibrating the Image of the Right Edge.5-4Locating

38、the Right Edge of the Part.5-7Switching Images.5-9Locating the Left Edge of the Part.5-9Calculating the Width of the Part.5-11Setting Calculator Step Inputs and Outputs.5-11Adding Operators and Constants.5-13Connecting the Equation Elements.5-14Making Logical PASS/FAIL Decisions with the Calculator

39、Step.5-16Setting the Inspection Status.5-17Testing the Inspection.5-18Saving the Inspection.5-18Chapter 6Branching and Decision MakingCreating a New Inspection.6-1Creating the Inspection State Diagram.6-1Acquiring Inspection Images.6-5Checking for a Spray Bottle in the Image.6-6Checking for the Cap

40、Using the Caliper.6-7Setting the Inspection Status.6-9Creating Custom Overlays for Inspection.6-9Configuring State Transitions.6-12Testing the Inspection.6-13Saving the Inspection.6-14Chapter 7Looping and VariablesCreating a New Inspection.7-1Creating the Inspection State Diagram.7-1Creating a Varia

41、ble.7-5Acquiring Inspection Images.7-6Finding Pin Edges.7-7NI Vision Builder for Automated Inspection Tutorial National Instruments|viiInitializing the Variable.7-8Indexing Measurements in a Result Array.7-8Setting a Coordinate System.7-9Checking the Pin Gap.7-9Updating the Variable.7-10Identifying

42、Failed Pins.7-11Setting the Inspection Status.7-12Displaying the Current Inspection Image.7-12Configuring State Transitions.7-13Testing the Inspection.7-14Saving the Inspection.7-15Appendix ATechnical Support and Professional ServicesGlossary National Instruments|ixAbout This ManualThis manual conta

43、ins many techniques for using NI Vision Builder for Automated Inspection(Vision Builder AI)to solve visual inspection tasks including inspection,gauging,part presence,guidance,and counting.Follow the instructions in this manual to familiarize yourself with Vision Builder AI and perform common inspec

44、tion tasks.This manual contains the following chapters:Chapter 1,Introduction to Vision Builder AI,introduces the Vision Builder AI environment and describes how to run an inspection.Chapter 2,Checking for the Presence of a Part,introduces the Match Pattern,Measure Intensity,and Set Coordinate Syste

45、m steps.Follow the instructions in this chapter to create an inspection that checks for the presence of a spray bottle cap regardless of the bottle position in the inspection images.Chapter 3,Inspecting Objects for Correct Measurements,introduces image calibration,and the Detect Objects and Geometry

46、 steps.Follow the instructions in this chapter to create an inspection that measures the distance between holes in a gasket to verify that the gasket conforms to manufacturing specifications.Chapter 4,Inspecting for Multiple Correct Instances of an Object,introduces the Find Straight Edge,Caliper,an

47、d Decision Making steps.Follow the instructions in this chapter to create an inspection that measures the distance between the blade connectors of a fuse and checks the integrity of the fuse conductor regardless of the fuse position or whether the fuse is inverted.Chapter 5,Inspecting an Object that

48、 Spans Two Image Frames,introduces the Select Image and Calculator steps.Follow the instructions in this chapter to create an inspection that measures the width of a wooden plank that spans two images.Chapter 6,Branching and Decision Making,introduces the inspection state diagram and the Custom Over

49、lay step.Follow the instructions in this chapter to create an inspection that checks the image for the presence of a spray bottle and,if a bottle is present,transitions to another state to determine if the bottle has a cap.If there is no spray bottle present in the image,the inspection moves on to t

50、he next image.Chapter 7,Looping and Variables,uses the inspection state diagram to implement a looping inspection and introduces the Set Variable and Array Operator steps.Follow the instructions in this chapter to create an inspection that inspects images of electronic components to determine if the

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 其他杂项

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com