LabVIEW IMAQ模块中文说明书
labviewIMAQ模块介绍
IMAQ模块介绍fhinali编写IMAQ模块介绍一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1.IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2IMAQ 模块介绍 fhinali 编写图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits ,16bits ,Float ,Complex ,RGB 和HSL 。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI 区域的描述。
ROI 是Region Of Interesting 的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI 为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI 类型(整数)和图形坐标点(为数组,根据ROI 类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS 四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
LabVIEW中文教材
计算机虚拟仪器图形编程LabVIEW实验教材北京中科泛华测控技术有限公司目录第一课LABVIEW概述 (4)第一节虚拟仪器(VI)的概念 (4)第二节L AB VIEW的操作模板 (6)工具模板(Tools Palette) (6)控制模板(Controls Palette) (8)功能模板(Functions Palette) (9)第三节创建一个VI程序 (11)1. 前面板 (11)框图程序 (12)从框图程序窗口创建前面板对象 (14)4. 数据流编程 (14)第四节程序调试技术 (15)1. 找出语法错误 (15)2. 设置执行程序高亮 (15)3. 断点与单步执行 (16)4. 探针 (16)第五节练习1-1 (16)第六节把一个VI程序作为子VI程序调用 (20)第七节练习1-2 (21)第八节练习1-3 (24)第九节练习1-4 (26)第十节练习1-5 (29)第二课数据采集 (33)第一节概述 (33)第二节数据采集VI程序的调用方法 (36)第三节模拟输入与输出 (37)练习2-1 (38)第四节波形的采集与产生 (41)练习2-2 (42)第五节扫描多个模拟输入通道 (43)练习2-3 (44)第六节连续数据采集 (45)练习2-4 (46)第三课仪器控制 (48)第一节概述 (48)第二节串行通讯 (48)第三节IEEE488(GPIB)概述 (50)练习3-1 (52)第四节VISA编程 (53)练习3-2 (55)第五节用L AB VIEW编写仪器驱动程序 (58)第六节验证仪器驱动软件 (58)练习3-3 (60)第四课分析软件 (63)第一节概述 (63)第二节、高级分析功能程序 (63)第三节信号产生 (64)练习4-1 (65)第四节信号处理 (66)练习4-2 (67)第五节数字滤波器 (68)练习4-3 (69)第六节曲线拟合 (71)练习4-4 (72)练习4-5 (74)第五课实用工具软件包 (77)第一节概述 (77)第二节常用软件工具箱 (77)第三节分析工具软件 (80)第一课LabVIEW概述第一节虚拟仪器(VI)的概念使用LabVIEW开发平台编制的程序称为虚拟仪器程序,简称为VI。
labview IMAQ模块介绍
IMAQ模块介绍fhinali编写IMAQ模块介绍一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1.IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2IMAQ 模块介绍 fhinali 编写图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits ,16bits ,Float ,Complex ,RGB 和HSL 。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI 区域的描述。
ROI 是Region Of Interesting 的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI 为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI 类型(整数)和图形坐标点(为数组,根据ROI 类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS 四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
【免费】LABVIEW-IMAQ模块中文说明书
IMAQ模块介绍一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1.IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits ,16bits ,Float ,Complex ,RGB 和HSL 。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI 区域的描述。
ROI 是Region Of Interesting 的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI 为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI 类型(整数)和图形坐标点(为数组,根据ROI 类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS 四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
2 Machine Vision controls机器视觉中用到的一些控件,只要是对图像画面进行选择的一些工具,包括点,线和面的选择以及坐标系的设定。
【免费】LABVIEW-IMAQ模块中文说明书
IMAQ模块介绍 fhinali编写IMAQ模块介绍一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1. IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2 IMAQ模块介绍 fhinali编写图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits,16bits,Float,Complex,RGB和HSL。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI区域的描述。
ROI是Region Of Interesting的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI类型(整数)和图形坐标点(为数组,根据ROI类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
Labview中NI-IMAQdx模块说明
NI-IMAQdx模块说明IMAQdx Snap VI:配置,启动,获取和取消配置单元采集。
在便于编程的应用场合中使用低速或单捕获是必不可少的部分。
如果你调用这个VI之前调用IMAQdx Open Camera VI,IMAQdx Snap VI默认情况下,使用cam0。
如果图像类型与摄像头的视频格式不匹配,该VI 将其转换到一个合适的图像类型格式。
Session In:指定您想重新设置的摄像机的名称。
默认值是cam0Session Out:是一个独特的参考相机,与Session In相同IMAQdx Configure Grab VI:配置和开始采集图像。
调用IMAQdx Grab VI在缓冲区高速循环采集图像并复制图像。
若在调用IMAQdx Open Camera VI之前调用此VI,则IMAQdx Configure Grab VI默认情况下使用cam0。
调用IMAQdx Unconfigure Acquisition VI取消获取图像的配置。
Session In:指定您想重新设置的摄像机的名称。
默认值是cam0Session Out:是一个独特的参考相机,与Session In相同IMAQdx Grab VI:获取输出图像的当前帧。
在调用IMAQdx Configure Grab VI之后才调用此VI。
如果图像类型与摄像头的视频格式不匹配,该VI将其转换到一个合适的图像类型格式。
Session In:是一个独特的摄像头。
可以通过调用IMAQdx Open Camera VI来得到Session Out:是一个独特的参考相机,与Session In相同Wait for Next Buffer? (Yes):若值为“Yes”,驱动程序将等待下一个可用的缓冲区;若值为“No”,将不会等待下一个可用的缓冲区,而是返回到最后采集的缓冲区。
Buffer Number Out:是实际获得的缓冲区的返回值。
labview中文
虚拟仪器(LabVIEW)虚拟仪器是一种高效用于构建数据采集与监测系统图形化编程语言。
使用虚拟仪器,您快速创建用户界面,让您交互控制您的软件系统。
要指定您系统的功能,您只需装配块关系图—一种自然的设计表示科学家和工程师。
测量硬件紧密集成方便了数据采集、分析与演示文稿解决方案的快速发展。
虚拟仪器包含强大的内置度量分析和一个图形的编辑器实现最佳性能。
虚拟仪器是使用于Windows 2000/NT/Me/9x、Mac OS、Linux、Sun Solaris 和HP-UX,有三种不同的开发系统选项。
更快地发展虚拟仪器通过加快发展了对传统的编程提升了4至10倍!使用模块化和层次结构的虚拟仪器,可以原型,设计,并且在一个短时间内修改系统。
您也可以重用虚拟仪器代码轻松快速地在其他应用程序中应用。
更好的投资使用虚拟仪器系统,每个用户有权访问单一的商业文书的成本低于一个完整的检测实验室。
此外,用户还可配置的虚拟仪器系统足够的灵活性,从而更好地长期投资的技术变化与适应。
优化性能虚拟仪器的所有应用程序执行以获得最佳性能的编译速度。
用虚拟仪器专业开发系统或应用程序生成器,可为您的代码的安全通讯生成独立可执行文件或dll。
您甚至可以创建共享的库或从其他编程语言中调用虚拟仪器代码的dll。
开放的开发环境用虚拟仪器在开放开发环境,您可以连接到通过ActiveX、Web、dll、共享的库、SQL(数据库)、DataSocket、TCP/IP和许多其他协议的其他应用程序。
虚拟仪器用于快速创建网络的测量和Web发布和远程数据共享最新的科技集成的自动化系统。
虚拟仪器也可以用于插件数据采集、信号调理、GPIB、VXI、PXI、基于计算机的仪器、串行协议、图像采集和运动控制的驱动程序。
除了在虚拟仪器的开发系统国家仪器还提供多种附加模块和扩展功能的虚拟仪器的工具集。
这使您可以快速构建可定制、鲁棒的测量和自动化系统。
虚拟仪器数据记录和监督控制模块高通道数的分布式应用程序日志记录的虚拟仪器数据和监督控制模块,提供了一个完整的解决方案。
LabVIEW 2013实时模块版本使用说明说明书
RELEASE AND UPGRADE NOTESLabVIEW Real-Time Module Version 2013This document provides system requirements, installation instructions, descriptions of new features, and information about upgrade and compatibility issues for the LabVIEW 2013 Real-Time Module.Refer to the Getting Started with the LabVIEW Real-Time Module manual for exercises you can complete to familiarize yourself with the Real-Time Module.TipRefer to the Real-Time Module Best Practices book in the LabVIEW Help for programming recommendations on designing, developing, and deploying applications with the LabVIEW Real-Time Module. Select Real-Time Module»Real-Time Module Best Practices on the Contents tab of the LabVIEW Help to display this book.ContentsSystem Requirements (2)Installing the LabVIEW 2013 Real-Time Module (2)Activating the Real-Time Module (3)Configuring Real-Time Targets (3)New Features (3)Support for NI Linux Real-Time Targets (3)Enhanced Example VIs (4)Performance Improvements for Advanced Format HDDs on ETS Targets (4)Ethernet Driver MSI Support (4)Networking Improvements on ETS Targets with Multiple Network Cards (4)NI Real-Time Execution Trace Toolkit (4)Activating the NI Real-Time Execution Trace Toolkit (5)Upgrade and Compatibility Issues (5)Known Issues with the Real-Time Module (5)Where to Go from Here (5)Related Documentation and Examples (5)NI Web Site (6)Support (6)™2| |LabVIEW Real-Time Module Release and Upgrade NotesSystem RequirementsThe following section describes the system requirements to run the LabVIEW 2013 Real-Time Module. In addition to the LabVIEW system requirements listed in the LabVIEW Readme , the Real-Time Module has the following requirements:•LabVIEW 2013 Full or Professional Development System (32-bit)•At least 200 MB of disk space in addition to the LabVIEW-recommended minimum.•RT target hardware and driver software.•One of the following operating systems for application development:–Windows 8 (32-bit)–Windows 8 (64-bit with 32-bit LabVIEW installed)–Windows 7 (32-bit)–Windows 7 (64-bit with 32-bit LabVIEW installed)–Windows Server 2003 R2 (32-bit)–Windows Server 2008 R2 (64-bit with 32-bit LabVIEW installed)–Windows Vista (32-bit)–Windows Vista (64-bit with 32-bit LabVIEW installed)–Windows XP Pro (Service Pack 3)NoteYou might need more memory than the LabVIEW-recommended minimum depending on the size of the application you design in LabVIEW on the host computer.Installing the LabVIEW 2013 Real-Time Module Complete the following steps to install LabVIEW and the Real-Time Module on a development computer:1.Log in to the development computer as an administrator or as a user with administrative privileges.2.Insert the LabVIEW 2013 Platform DVD 1.NoteTo request additional LabVIEW 2013 Platform DVDs, refer to the National Instruments website. If you purchased this product with an NI Software Suite or NI Product Bundle, use the installation media that shipped with your purchase to install this product.3.Follow the instructions on the screen to install and activate the following software:•LabVIEW•Real-Time Module•(Optional) PID and Fuzzy Logic Toolkit—Use the Real-Time Module serial number to activate this toolkit.•Device DriversLabVIEW Real-Time Module Release and Upgrade Notes |© National Instruments |3NoteRefer to your hardware-specific documentation for information about installing the appropriate device drivers.Activating the Real-Time ModuleThe Real-Time Module relies on licensing activation. When the evaluation period expires, you must activate a valid Real-Time Module license to continue using the Real-Time Module. You must create an User Profile to activate your software.You can use the NI License Manager, available by selecting Start»All Programs»National Instruments»NI License Manager , to activate National Instruments products. (Windows 8)Click NI Launcher and select NI License Manager in the window that appears. Refer to the National Instruments License Manager Help , available by selecting Help»Contents in the NI License Manager, for information about activating NI products.Configuring Real-Time TargetsUse Measurement & Automation Explorer (MAX) to configure RT targets and to install software and drivers on targets. You can install MAX from the LabVIEW Platform DVD.•Networked RT Targets —Refer to the MAX Remote Systems Help book in theMeasurement & Automation Explorer Help , available by selecting Help»MAX Help from MAX, for information about configuring networked RT targets.•Desktop PC Targets —Refer to the Using Desktop PCs as RT Targets with theLabVIEW Real-Time Module document for information about configuring a desktop PC as a networked RT target. Open the labview\manuals directory and double-click RT_Using_PC_as_RT_Target.pdf to open the document.Note When NI Web-based Configuration & Monitoring is installed on an RTtarget, you can use a web browser to perform common monitoring and configuration tasks on the target. Refer to the Fundamentals»Working with Projects andTargets»How-To»Monitoring and Configuring a Remote Device from a WebBrowser topic on the Contents tab in the LabVIEW Help for information aboutNI Web-based Configuration & Monitoring.New FeaturesThe LabVIEW 2013 Real-Time Module includes the following new features. Refer to the LabVIEW Help, available by selecting Help»LabVIEW Help , for more information about these features.Support for NI Linux Real-Time T argetsThe LabVIEW 2013 Real-Time Module adds support for targets running the NI Linux Real-Time operating system. Refer to the Real-Time Module»Real-Time OperatingSystems»Real-Time Module on NI Linux Real-Time Targets topic on the Contents tab in the LabVIEW Helpfor information about NI Linux Real-Time targets.Enhanced Example VIsUse the NI Example Finder, available by selecting Help»Find Examples from LabVIEW, to find new or enhanced RT examples in the Toolkits and Modules»Real-Time directory. Performance Improvements for Advanced Format HDDs on ETS TargetsThe LabVIEW 2013 Real-Time Module includes performance improvements for Advanced Format HDDs on ETS targets. To take advantage of these improvements, such as increased write speed, you must reformat your hard drive partition.Ethernet Driver MSI SupportThe LabVIEW 2013 Real-Time Module includes support for message signaled interrupt (MSI) on Intel 1000e Ethernet drivers and on Intel 8254 Ethernet drivers for Intel 8257 devices. Networking Improvements on ETS Targets with Multiple Network CardsThe LabVIEW 2013 Real-Time Module adds the following features to ETS targets:•DHCP/AutoIP on secondary network cards•Support for multiple network cards on the same network subnet•Dynamic network reconfiguration based on network card link state•Extended feedback of network device status on target screens and consolesNI Real-Time Execution Trace T oolkitThe LabVIEW Real-Time Module includes a 30-day evaluation of the Real-Time Execution Trace Toolkit. The Real-Time Execution Trace Toolkit includes the Real-Time Execution Trace Tool and the Execution Trace Tool VIs. You can use the Execution Trace Tool VIs to capture the timing and execution data of VI and thread events for applications running on an RT target. The Real-Time Execution Trace Tool displays the timing and event data, or trace session, on the host computer. In LabVIEW, select Tools»Real-Time Module»Execution Trace Toolkit to display the Real-Time Execution Trace Tool.Refer to the Real-Time Execution Trace Toolkit book in the LabVIEW Help for information about using the Real-Time Execution Trace Toolkit to debug real-time applications. Select Help»LabVIEW Help to display the LabVIEW Help. In the LabVIEW Help, browse to Toolkits»Real-Time Execution Trace Toolkit to view the Real-Time Execution Trace Toolkit book.4||LabVIEW Real-Time Module Release and Upgrade NotesActivating the NI Real-Time Execution T race ToolkitThe Real-Time Execution Trace Toolkit relies on licensing activation. You have a temporary license for a 30-day evaluation period. When the evaluation period expires, you must activate a valid Real-Time Execution Trace Toolkit license to continue using the Real-Time Execution Trace Toolkit. You can use the NI License Manager to activate the Real-Time Execution Trace Toolkit.Upgrade and Compatibility IssuesYou might encounter compatibility issues when upgrading to the Labview 2013 Real-Time Module from the LabVIEW 2012 Real-Time Module. Refer to previous versions of the LabVIEW Real-Time Module Release and Upgrade Notes, available on /manuals, for changes in previous versions of the Real-Time Module.NI Linux Real-Time T argetsCertain conventions on ETS and VxWorks targets, such as the file transfer mechanism and directory structure, do not apply on NI Linux Real-Time targets.Refer to the Real-Time Module»Real-Time Operating Systems»Real-Time Module onNI Linux Real-Time Targets topic on the Contents tab in the LabVIEW Help for information about NI Linux Real-Time targets.Known Issues with the Real-Time ModuleRefer to the National Instruments website at /info and enter the Info CodeLVRT2013KIL to access the known issues for the LabVIEW 2013 Real-Time Module. Where to Go from HereNational Instruments provides many resources to help you succeed with your NI products. Use the following resources as you start exploring LabVIEW and the Real-Time Module. Related Documentation and ExamplesUse the following resources to learn more about using LabVIEW and the Real-Time Module:•LabVIEW Help—Available by selecting Help»LabVIEW Help in LabVIEW. Browse the Real-Time Module book in the Contents tab for an overview of the Real-Time Module.•Context Help Window—Available by selecting Help»Show Context Help. Context help provides brief descriptions of VIs, functions, and dialog boxes. Context help for most VIs and functions include a link to the complete reference for a VI or function.LabVIEW Real-Time Module Release and Upgrade Notes|© National Instruments|5•Hardware-Specific Documentation—Some RT targets provide printed documentation as well as content in the LabVIEW Help. Use the hardware documentation for information about using the RT target with LabVIEW and for information about hardwarespecifications.•Examples—Use the NI Example Finder, available by selecting Help»Find Examples from LabVIEW, to browse or search for RT example VIs. You also can access example VIs from the labview\examples\Real-Time Module directory.NI Web SiteRefer to /info and enter the Info Code rtinfo for the latest NI Developer Zone articles, examples, and support information for the Real-Time Module.Refer to /info and enter the Info Code rttrn to access online training for the Real-Time Module.SupportThe National Instruments website is your complete resource for technical support. At/support you have access to everything from troubleshooting and application development self-help resources to email and phone assistance from NI Application Engineers. National Instruments corporate headquarters is located at 11500North Mopac Expressway, Austin, Texas, 78759-3504. National Instruments also has offices located around the world to help address your support needs. For telephone support in the United States, create your service request at /support and follow the calling instructions or dial 5127958248. For telephone support outside the United States, visit the Worldwide Offices section of / niglobal to access the branch office websites, which provide up-to-date contact information, support phone numbers, email addresses, and current events.6||LabVIEW Real-Time Module Release and Upgrade NotesRefer to the NI Trademarks and Logo Guidelines at /trademarks for more information on National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patents Notice at /patents. You can find information about end-user license agreements (EULAs) and third-party legal notices in the readme file for your NI product. Refer to the Export Compliance Information at /legal/export-compliance for the National Instruments global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data.© 2000–2013 National Instruments. All rights reserved.371374K-01Jun13。
IMAQ Vision 1400系统设置指南说明书
IMAQ™,LabVIEW™,and NI-IMAQ™are trademarks of National Instruments Corporation.Product and company names mentioned herein are trademarks or trade names of their respective companies.322457B-01©Copyright 1999,2000National Instruments Corp.All rights reserved.November 2000G ETTING S TARTED WITHY OUR IMAQ V ISION 1400S YSTEMThis note describes how to set up the IMAQ Vision 1400system,a complete,general-purpose system for quickly developing PC-based machine vision applications.With the IMAQ Vision 1400system,you can develop low-cost,customizable solutions for pattern matching,alignment,gauging,inspection,and optical character recognition (OCR)applications.The IMAQ Vision 1400system includes development software,anIMAQ PCI-1409image acquisition device,an analog monochrome camera,a lens,and cabling.What You Need to Get StartedTo set up your IMAQ Vision 1400system,you need the following:❑IMAQ PCI-1409and documentation❑National Instruments driver and application software,as follows:–NI-IMAQ version 2.5or higher –LabVIEW 6.0or higher –IMAQ Vision 5.0or higher –IMAQ Vision Builder 1.0or higher –IMAQ Vision OCR 1.0or higher❑RS-170or CCIR analog monochrome camera❑Camera power supply and cable❑Lens❑BNC cableGetting Started with Your IMAQ Vision 1400System Installing Your SoftwareNote Y ou must install the NI-IMAQ driver software before installing the PCI-1409.Install your software in the following order:1.LabVIEW —Consult your LabVIEW release notes for directions to install LabVIEW.2.NI-IMAQ —Follow the directions in the NI-IMAQ forWindows 2000/NT/Me/9x Release Notes to install the NI-IMAQ driver software.Note If you do not have Adobe Acrobat Reader installed on your computer,install it at this time.Y ou will need Acrobat Reader to access much of the IMAQ and LabVIEW documentation.3.IMAQ Vision —Follow the directions in the IMAQ Vision for LabVIEW Release Notes to install IMAQ Vision.4.IMAQ Vision Builder —Follow the directions in the IMAQ Vision Builder Tutorial to install IMAQ Vision Builder.5.IMAQ Vision OCR —Follow the directions in the IMAQ Vision OCR for LabVIEW Release Notes to install IMAQ VisionOCR.©National Instruments Corporation 3Getting Started with Your IMAQ Vision 1400SystemInstalling Your HardwareRefer to Figure 1as you follow these general instructions to install your hardware:1.Install your PCI-1409.Follow the instructions on pages 1and 2of the Getting Started with Your IMAQ System document.For more information on installing your hardware,see the IMAQ PCI/PXI-1409User Manual .2.Assemble the camera and lens.3.Connect the camera to the PCI-1409with the BNC cable.4.Connect the power supply to the camera.5.Connect the power supply cord to the power supply.6.Plug the power supply cord into a power outlet.7.Start your computer.Figure 1.Installing the IMAQ Vision 1400System 1PCI Slot 2IMAQ PCI-14083Computer 4Camera Power Supply 5Power Supply Cord 6RS-170or CCIR Camera 7Lens 8BNC CableWhere to StartFollow these general steps to learn how to acquire your first image andbegin building imaging applications:1.Follow the instructions on pages3and4of the Getting Started withYour IMAQ System document to acquire your first image.plete the activities in Getting Started with LabVIEW if you are anew LabVIEW user.If you are an experienced LabVIEW user,consultthe LabVIEW User Manual to review basic LabVIEW programmingconcepts.3.To learn how to use the NI-IMAQ VIs,consult the NI-IMAQ UserManual and the NI-IMAQ VI Reference online help.Y ou can find theuser manual in portable document format(PDF)in the Start»NationalInstruments»Vision»Documentation folder.Y ou can access the helpfile from the LabVIEW Help menu.4.To learn how to use IMAQ Vision Builder to build prototypes of yourapplication,perform the exercises in the IMAQ Vision BuilderTutorial.5.To run examples for IMAQ Vision,consult the IMAQ Vision onlinehelp files.You can access the online help from the LabVIEW Helpmenu.For additional information on IMAQ Vision,consult the IMAQVision User Manual and the IMAQ Vision Concepts Manual.6.To learn how to use IMAQ Vision OCR,consult the IMAQ Vision OCRfor LabVIEW Release Notes and run the IMAQ Vision OCR onlinehelp,which you can access from the LabVIEW Help menu.。
视觉调试Labview_中文帮助
视觉调试Labview_中⽂帮助NI Vision for LabVIEW基础(⽬录)NI VISION简介 (4)NI Vision控件模板 (4)NI Vision函数模板 (4)如何创建NI Vision应⽤ (8)准备测量图像 (10)建⽴图像系统 (10)校准图像系统 (11)创建图像 (11)采集或读取图像 (15)显⽰图像 (16)加⼊校准信息 (19)分析图像 (19)改善图像 (20)进⾏灰度和彩⾊测量 (25)定义关注区 (25)测量灰度统计数据 (32)测量彩⾊统计数据 (33)进⾏颗粒分析 (38)创建⼆值图像 (38)改善⼆值图像 (39)完成机器视觉任务 (42)检测物体定位 (43)设置搜索区域 (47)查找测量点 (48)将像素坐标转换成现实坐标 (66)进⾏测量 (66)辨别被测部件 (69)检查图像的缺陷 (73)显⽰结果 (74)校准图像 (77)透视和⾮线性畸变校准 (78)Simple Calibration (86)Save Calibration Information (88)Attach Calibration Information (89)在LabVIEW实时模块中使⽤NI Vision (90)Overview (90)Real-Time System Components (90)Software Installation (91)Image Display (92)Determinism in Real-Time Applications (95)Deployment (101)Troubleshooting (101)NI Vision for LabVIEW基础(⼀):NI Vision简介2010-01-2116:57:08标签:LabView机器视觉原创作品,允许转载,转载时请务必以超链接形式标明⽂章原始出处、作者信息和本声明。
LabVIEW 中Vision各模块说明
一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1.IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits,16bits,Float,Complex,RGB和HSL。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI区域的描述。
ROI是Region Of Interesting的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI类型(整数)和图形坐标点(为数组,根据ROI类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
2 Machine Vision controls机器视觉中用到的一些控件,只要是对图像画面进行选择的一些工具,包括点,线和面的选择以及坐标系的设定。
IMAQ Vision for LabVIEW 6.1 用户指南说明书
IMAQ Vision for LabVIEW Release Notes About IMAQ Vision for LabVIEWIMAQ Vision for LabVIEW is for engineers and scientists who are developing machine vision and scientific imaging applications.IMAQ Vision for LabVIEW is a library of powerful functions for image processing.IMAQ Vision 6.1for LabVIEW includes the following new functionalities:support for LabVIEW Real-Time,enhanced pattern matching functions,and new overlay functionality.Support for LabVIEW Real-TimeIMAQ Vision for LabVIEW introduces LabVIEW Real-Time (RT)support for IMAQ Vision and e LabVIEW RT support to create a machine vision application for a real-time,deterministic,embedded target.For information about using IMAQ Vision with LabVIEW RT,refer to the IMAQ Vision for LabVIEW Real-Time User Manual .Note In order to take advantage of the LabVIEW RT features in IMAQ Vision,IMAQ Vision Builder,and NI-IMAQ,you must purchase and install LabVIEW 6.1or later and LabVIEW Real-Time Module 6.1or later.Pattern Matching EnhancementsIMAQ Vision for LabVIEW contains updated pattern matching VIs that perform with improved accuracy.IMAQ Vision for LabVIEW also contains three new pattern matching VIs —IMAQ Advanced Setup Learn Pattern 2,IMAQ Advanced Setup Match Pattern 2,and IMAQ Refine Matches —that give you low-level control of the pattern matching algorithm.Overlay EnhancementsThe new IMAQ Merge Overlay VI merges a non-destructive overlay into an image,making the overlay part of the image content.This feature allows you to view and print the image with its overlay information from any third-party imagingsoftware.Distributing Applications that Use IMAQ VisionUse the IMAQ Vision Deployment Engine to distribute an applicationdeveloped with IMAQ Vision.The IMAQ Vision Deployment Engine isavailable separately.To distribute an application developed with IMAQVision,you must have the IMAQ Vision Deployment Engine installed onthe development machine and you must have an IMAQ Vision deploymentlicense for each target machine.Contact a National Instruments sales representative or visit topurchase the IMAQ Vision Deployment Engine and deployment licenses. About the IMAQ Vision Documentation SetIn addition to these release notes,the IMAQ Vision documentation setconsists of the following:•The IMAQ Vision Concepts Manual contains vision conceptualinformation.Read this document if you are new to vision.•The IMAQ Vision for LabVIEW User Manual contains information onhow to build vision applications using IMAQ Vision for LabVIEW.•The IMAQ Vision for LabVIEW online help contains referenceinformation about IMAQ Vision VIs.In LabVIEW,click Help»IMAQVision to access this help.•The IMAQ Vision examples help file contains links to all installedIMAQ Vision examples.In LabVIEW,click Help»Search IMAQExamples to access these example links.•The readme.txt file,which is located on the IMAQ Visioninstallation CD,contains last-minute information concerning thisrelease of IMAQ Vision for LabVIEW.•IMAQ Vision for LabVIEW Real-Time User Manual containsinstallation,configuration,acquisition,and programming informationspecific to IMAQ Vision for LabVIEW Real-Time.For your convenience,all printed IMAQ Vision documents are alsoavailable in Portable Document Format(PDF),which you can access fromthe Start»Programs»National Instruments»Vision»Documentationmenu.©National Instruments Corporation3IMAQ Vision for LabVIEW Release Notes。
LabVIEWIMAQ模块中文说明书
LabVIEWIMAQ模块中文说明书IMAQ 模块介绍fhinali 编写IMAQ 模块介绍一.LabVIEW 机器视觉前面板上的模块有以下几类(如图 1 所示)1.IMAQ Image.ctl 2.Image Display control 3.IMAQ Vision controls 4.Machine Vision controls图1 1 IMAQ Vision controls 对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图 2IMAQ 模块介绍fhinali 编写图2 1.1 Image Type 用于图片类型的选择,可以选择的类别有8bits,16bits,Float,Complex,RGB 和 HSL。
一般用在从文件中读取图片时类型的选择。
1.2 ROI Descriptor ROI 区域的描述。
ROI 是 Region Of Interesting 的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI 为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4 个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI 类型(整数)和图形坐标点(为数组,根据ROI 类型的不同,数组的定义也不同)1.3Optional Rectangle 选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode 色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS 四种。
1.5Threshold Range 阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel 二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation 形态算法的选择。
LabView视觉函数 部分 中文 解释
IMAQ Learn Pattern 2 VI在匹配阶段创建您要搜索的图案匹配的模板图像的描述,此描述的数据被附加到输入模板图像中。
在匹配阶段,从模板图像中提取模板描述符并且用于从检查图像中搜索模板。
Image:是一个您要搜索模板图像的参考检查图像。
Learn Pattern Setup Data(学习模式设置数据):是一个字符串,包含从本控件或从高级控件(IMAQ Advanced Setup Learn Pattern 2 VI)获得的信息。
如果此引脚没有连接,在学习阶段VI使用默认参数。
Learn Mask(学习面膜):是一个可选的屏蔽图像,此图片必须是U8模式的图像。
在VI中只学习那些在源图像中相应掩模为零的像素,非零像素被忽略。
不要设置这个参数来学习整个图像。
Template Image Out:是一个参考的模板,此模板图像包含的数据定义在匹配阶段的模板模式IMAQ Setup Learn Pattern 2 VI设置学习阶段,图案匹配过程中使用的参数。
执行IMAQ Learn Pattern 2 VI之前执行此VI。
Learn Mode:学习模板时,使用此引脚指定的不变性模式。
All(0) (默认值)提取移位和旋转不变匹配的模板信息Shift Information(1) 提取平移不变性匹配的信息。
Rotation Information(2) 提取旋转不变匹配的信息。
Learn Pattern Setup Data(学习模式设置数据):是一个字符串,包含学习阶段设置参数选择的信息。
此输出连接到IMAQ Learn Pattern 2 VI或IMAQ Advanced Setup Learn Pattern 2 VIIMAQ Setup Match Pattern 2 VIIMAQ设定匹配模式2 VI设置图案匹配的匹配阶段所使用的参数。
执行此VI前IMAQ Match Pattern 2 VI 或IMAQ Refine Matches VI。
USB摄像头与LabVIEW IMAQ USB编程实现的图像获取与处理系统说明书
5th International Conference on Measurement, Instrumentation and Automation (ICMIA 2016)Image Acquistion and Processing system based on USBZhangHui1,a SiMing He1,a Changli Qiu1,a1,2,3,4,5Electrical and Electronic Teaching and Research Section ,Aviation University of Air ForceChangchun, 130022, Chinaa email:****************Keywords: LabVIEW IMAQ USB USB camemaAbstract. We use USB camera and IMAQ vision to program on LabVIEW platform.We process the contionuous acquistion of image,include adjusting the brightness,contrast,gamma value of image, and cut the image with a specified path.the design is low cost,easier implementation and flexible operation ,It’s have good prospects for development.IntroductionImage can help human perception to the outside world,is an important tool to obtain information,especially the video image is very convenience foe people’s life.With the popularization and development of usb interface ,usb camera is widely used as high speed,portable image acquisition equipment.However ,image acquistion process has some shortcoming such as long development cycle,poor universality , higher cost and so on .So ,we need design a strong commonality and hign performance of image and processing system is very important..In order to meet the above requirements,the design adopts LabVIEW as the software editor,which mainly used for data collection,analysis,display and control and other field.We program with graphical programming language LabVIEW,through IMAQ USB module and USB camera to finish real-time acquisition and processing,system structure diagram is shown in Fig.1.The design is divided into two parts,the first part is including a computer equipped with LabVIEW sofyware,mainly for video image display,processing and preservation,the second part in cluding a common USB camera,focus on real-time image acquistion[1].Fig.1. system structure diagramFor image acquisition and processing technology of labview platform,NI company provides powerfl software IMAQ VISION,which contains more than 400 image processing function and interactive image processing window,include statistics,filtering ,image processing,such as geometrictransformation shape matching,spot analysis and calulation and measurement application[2].It can process one-dimensional or multidimensional image and also customize according to the requirement of design personalized features.We use USB module of IMAQ VISION and USB camera to realize the video acquisttion,sedign control image operation panel,adjust the brightness of the image,contrast the gamma value ,capture image at a certain moment and save the specified durectory.the System is simple .The cycle is short, andoperation is flexible.The System Design ProcessThe front panel Process. The front panel as the labview software user interface,can effectively collect video image and display on the computer.We can adjust brightness ,contrast and gamma value,at the same time,we can capture the image and save it under the specified path. The front panel design is shown in Fig.2.Fig.2. The front panel designThe diagram Design. The program block diagram is used to implement vi logic functions,is the graphical code,as shown in Fig.3.We use attachment to corresponding function such as program,controls,constants and variables.It’s compared with the traditional text type code,not only the development is simple,but also the program is easy to understand[3].Fig.3. Theprogram panel designThe program block diagram of the process as shown in Fig.4.the program block is divided into four main function moduled,including image acquistion module,image processing module,image saving module and other functionnal modules[4].Fig.4 The program block diagram(1)Image acquistion module:Firstly,we use the output of the IMAQ USB Enumer-ate Cameras.vi connected to the strings array of usb camera,open the USB camera with IMAQ USB Init.vi,and by IMAQ USB Init.vi to open the usb camera. Secondly,we use while loop and IMAQ USB Grab Acquire.vi to collet the image continnuous,and IMAQ Creat can set the buffer space of IMAQ USB Grab Acquire.vi.Finally,we use IMAQ USB Close.vi to close the USB camera.The whole process,the image real-time display by Image Dis-play.(2)The Image processing module:We use the while loop to acquist the continuous image.We use IMAQ ColorB-CGLookup, Image Scr and Image Dst Out to connect input image and output image. Red BCG Values,GreenBCG Values and Blue BCG Values are used to change the brightness,contrast and gamma value,which can adjust the visual effect of image.(3)The save function:In the while loop,the conditional structure is used to judge whether we need screenshot.We use IMAQ WriteFile to set the save image type to PNG format,.The users can choose the srorage paths,including the select folder or new folder.Boolean controls the choice of control condition,if ture,the system automatically pop-up srore dialog box,you can customize the image name,and save the current video image;if false,wo must continues to collect images.In addition,if you select the cancel button in the dialog box,the system immediately to exit the save box,restore image acquisition function ,does not affect the program run.(4) Other modules: In the while loop,we can set the program to display the current time and ms timer.It is convenient for users to observation time by the current time mode.We can control code execution speed and reduce the CPU usage by ms timer.In addition,as long as the program runs,the red linghe has been bright,which can remind the user the program is using.Image process.Fiestly, we process the image such as gradation transformation and smoothing filter. Secondly, we separate the target from the background.Thirdly, we product template and match template image.Finally, we calculate the center of the target location[5].Dynamic image recognition. The static image has nothing to do with the time,it is the function of the position,but only a static image can’t descript the movement of objects.The moving target is imagesequence,each image is called a frame,The different image contains of relative information of camera and scenery.The image sequence uaually can be expressed as f(x,y,t),It add a time parameter t compared with static image..Because of time interval of all imge is equal ,so rhe image sequence can be expressed as f(x,y,i),It means the number of frame.We can analysis image sequence and get the motion parameters.we can use a algorithm which compare two different frame of the target image and we can know the differences because of the movement of objects. In the actual calculation process, we need subtracte the two frame target image, according to difference pixel can detect the moving object, calculate the movement of the target direction.ConclusionsCompared with traditional USB camera to collect video image,the system can not only realize the basic functions,abd when the image is darker,it is can adjust the brightness;the image is not clear,it is can adjust the contrast; γ valuealso can help to adjust the image color information,improve the image quality,making it easy for users to observe.At the same time,the system has good development and application scenarios.References[1].P. Fornaro, M. Guggisberg, T. Gyalog, Ch. Wattinger, E. Meyer and H.-J. Gntherodt. A RemoteControllable and Programmable Atomic Force Microscope based on LabVIEW.(2008)[2]. George C Panayi, Alan C Bovik and Umesh Rajashekar.Image Processing for Everyone.(2010)[3]National Instruments.《IMAQ Vision User's Manual》.(2011).[4]Wang Zhixiao,Dong Fuguo.Realization of Virtual Oscillograph Based on USB.The Eighth International Conference on Electronic Measurement and Instruments,Xi’an,2007[5]LabVIEW Advanced performance&Communication Course Manual[J].National instruments,2013.。
LabVIEW 2009 Education Edition 中文版说明书
LabVIEW Education Edition™Release NotesLabVIEW 2009The LabVIEW Education Edition is a software programming kit tailoredfor educational purposes. You can use the LabVIEW Education Edition toteach and learn science and engineering concepts through a project-basedcurriculum.These release notes contain system requirements and installationinstructions for the LabVIEW Education Edition.Read the System Requirements section of this document before you installthe LabVIEW Education Edition and then follow the instructions in theInstalling the LabVIEW Education Edition section. After you install theLabVIEW Education Edition, read the Where to Go from Here section forinformation about getting started with and using the LabVIEW EducationEdition.ContentsOverview (2)Windows (2)Mac OS (2)System Requirements (2)Windows (2)Mac OS (2)Installing the LabVIEW Education Edition (3)Where to Go from Here (3)OverviewThe LabVIEW Education Edition contains the following components.Windows•LabVIEW 2009•LabVIEW 2009 LEGO® MINDSTORMS® NXT Module•Vernier Sensor DAQ® and Go!®•NI-DAQmx 9.0Mac OS•LabVIEW 2009•LabVIEW 2009 LEGO® MINDSTORMS® NXT Module•Vernier Go!®•NI-DAQmx Base 3.3.0System RequirementsThe LabVIEW Education Edition has the following requirements.Windows•Windows Vista/XP/2000• 2.4 GB of disk spaceMac OS•Mac OS X v10.4 or v10.5• 1.4 GB of disk spaceNote Refer to the LabVIEW Release Notes, at /manuals, for a complete list ofsystem requirements for LabVIEW.LabVIEW Education Edition Release Installing the LabVIEW Education EditionThe LabVIEW Education Edition contains the LabVIEW EducationEdition for Windows installation DVD and the LabVIEW EducationEdition for Mac OS installation DVD. Install the appropriate versionof installation DVD for the operating system you are using.Complete the following steps to install the LabVIEW Education Edition.1.(Windows) Log on as an administrator or as a user with administratorprivileges.2.Disable any automatic virus detection programs before you install.Some virus detection programs interfere with installation.3.Insert the appropriate LabVIEW Education Edition installation DVDfor the operating system you are using.4.(Mac OS) Double-click the NI LabVIEW Education Edition.mp kgfile to launch the installer.5.Follow the instructions that appear on the screen.6.After installation, enable any virus detection programs you disabled. Where to Go from HereRefer to the following resources for information about programming withand using the LabVIEW Education Edition:•LabVIEW NXT Module Help—Use the LabVIEW NXT Module Help toaccess information about NXT Module programming concepts,step-by-step instructions for using the NXT Module, and referenceinformation about NXT Module VIs, functions, palettes, menus, tools,dialog boxes, and so on. Access the LabVIEW NXT Module Help byselecting Help»NXT Module Help in LabVIEW.•LabVIEW LEGO® MINDSTORMS® NXT Module ProgrammingGuide—Use this guide to access information about advancedprogramming in the LabVIEW NXT Module. This guide details theNXT-specific modifications and extensions to LabVIEW provided bythe NXT Module. Access this guide by navigating to thelabview\manuals directory and openingNXT_Advanced_Programming_Guide.pdf.© National Instruments Corporation3LabVIEW Education Edition Release Notes•LabVIEW Help—Use the LabVIEW Help to access information aboutLabVIEW programming concepts, step-by-step instructions for usingLabVIEW, and reference information about LabVIEW VIs, functions,palettes, menus, tools, properties, methods, events, dialog boxes, andso on. The LabVIEW Help also lists the LabVIEW documentationresources available from National Instruments. Access the LabVIEWHelp by selecting Help»Search the LabVIEW Help in LabVIEW.•LabVIEW Quick Reference Card—Use this card as a reference forinformation about documentation resources, keyboard shortcuts, datatype terminals, and tools for editing, execution, and debugging. Accessthis manual by navigating to the labview\manuals directory andopening LV_Quick_Reference.pdf.•Using the LabVIEW Education Edition in the Classroom—Visit theUsing the LabVIEW Education Edition in the Classroom Web site at to access ideas and information about project-based lessonsthat use the LabVIEW Education Edition.•NXT Robotics Online Community—Visit the NXT Robotics OnlineCommunity Web site at to read the latest training tutorials,download example programs, and connect with other LabVIEW usersor engineers.•How to Use Vernier Sensors with LabVIEW—Visit this Web site at/labview/training to access tutorials and otherinformation about using Vernier sensors with LabVIEW.National Instruments, NI, , and LabVIEW are trademarks of National Instruments Corporation.Refer to the Terms of Use section on /legal for more information about NationalInstruments trademarks. LEGO and MINDSTORMS are trademarks of the LEGO Group. Go!,SensorDAQ, and Vernier are registered trademarks of Vernier Software & Technology. Vernier Software& Technology and are trademarks or trade dress. Other product and company namesmentioned herein are trademarks or trade names of their respective companies. For patents coveringNational Instruments products/technology, refer to the appropriate location: Help»Patents in yoursoftware, the patents.txt file on your media, or the National Instruments Patent Notice at/patents.© 2009 National Instruments Corporation. All rights reserved.375247A-01Sep09。
Labview中Vision Utilities模块说明
Image ManagementIMAQ Create VI:创建一个暂时存储图像的缓冲区。
在labview中结合IMAQ DisposeVI来创建或处理视觉图像Border Size:设置创建的图像的宽度,以像素为单位。
这些像素仅用于特定的VI,在您的应用程序开始时创建一个边界,如果图像是使用Function中的图像处理功能,则需要一个边界(例如,标签和形态),然后才能处理图像。
默认的边框值是3。
Image Name:与创建的图像相关联的图像名称,每幅图像必须有一个唯一的名称。
Image Type:指定的图像类型。
从以下值中选择Grayscale (U8) (0):每像素8位(无符号,标准单色)Grayscale (16) (1):每像素16位(有符号)Grayscale (SGL) (2):每像素32位(浮点)Complex (CSG) (3):每像素2×32位(浮点)RGB (U32) (4):每像素32位(红,绿,蓝,alpha)HSL (U32) (5):每像素32位(色调,饱和度,亮度,α)RGB (U64) (6):每像素64位(红,绿,蓝,alpha)Grayscale (U16) (7):每像素16位(无符号,标准单色)IMAQ Dispose VI:销毁图像,释放其占用的内存空间。
在应用程序中释放I MAQ Create VI创建图像时分配的内存空间。
在应用程序中不再需要图像时执行IMAQ Dispose VI。
在所有IMAQ Create VI创建图像之后调用一次IMAQ Dispose VI。
IMAQ Image Bit Depth VI:给出图像的位深度相关信息,或修改图像的位深度。
NI视觉图像的位深度决定如何显示图像、图像转换到另一个图像类型以及写入图像为PNG文件Bit Depth (0):只有当Get/Set Bit Depth? (Set)设置为“Set”时,此端口才有效,指定新图像的位深度。
IMAQ Vision for LabVIEW版本6.0系统要求说明说明书
IMAQ ™,LabVIEW ™,National Instruments ™,and ™are trademarks of National Instruments Corporation.Product and company names mentioned herein are trademarks or trade names of their respective companies.322363B-01©Copyright 1999,2000National Instruments Corp.All rights reserved.October 2000IMAQ V ISION FOR L AB VIEWVersion 6.0IMAQ Vision for LabVIEW adds multipurpose image processing and machine vision capabilities to LabVIEW.These release notes describe system requirements,provide installation instructions,and contain updated information about IMAQ Vision for LabVIEW.System RequirementsTo run IMAQ Vision 6.0on your machine,you must have the following minimum system requirements:•Microsoft Windows 2000/NT version 4.0or Windows Me/9x •50MB or more of free hard disk space •32MB RAM or more •NI-IMAQ 2.2or higher if you use NI-IMAQ driver software •LabVIEW 5.1or higher Note Consult the LabVIEW release notes for the required system configurations for LabVIEW.Installation InstructionsFollow these instructions to install IMAQ Vision 6.0on your computer:1.Insert the IMAQ Vision for LabVIEW installation CD.2.If you do not have autorun enabled,double-click on setup.exe .If you have autorun enabled,setup.exe runs automatically.3.Follow the instructions on yourscreen.Distributing Applications that Use IMAQ VisionIf you want to distribute an application developed with IMAQ Vision,use the IMAQ Vision Deployment Engine.Before distributing an application developed with IMAQ Vision,youmust have the IMAQ Vision Deployment Engine and an IMAQ Visiondeployment license for each target machine.Contact yourNational Instruments sales representative or visit to purchasedeployment licenses.New FunctionalityThis section briefly summarizes the new functionality found in version6.0of IMAQ Vision for LabVIEW.Palette ReorganizationIMAQ Vision features reorganized palettes that create an easy interfacefor developing machine vision applications.There are three main palettesof IMAQ Vision VIs:Vision Utilities,Image Processing,and MachineVision.The Vision Utilities palette contains VIs for creating and disposingimages,display,image and pixel manipulation,calibration,and region ofinterest tools.The Image Processing palette contains a wide range of VIsfor processing and analyzing color,grayscale,and binary images.The Machine Vision palette contains new high-level machine vision VIs,as well as VIs for pattern matching,analytic geometry,and instrumentreading.Color Pattern MatchingUse color pattern matching to quickly locate known reference patterns,or fiducials,in a color image.Color pattern matching can simplify amonochrome problem by improving contrast or separation of the objectfrom the background.Color pattern matching expands the powerfulIMAQ Vision grayscale pattern matching feature by locating patternsthat can be distinguished only by color.In some cases,the extra colorinformation allows the algorithm to find patterns more quickly than withgrayscale pattern matching.Color pattern matching also providesextremely quick color location solutions.IMAQ Vision for LabVIEW Release CalibrationUse IMAQ Vision spatial calibration functions to calibrate your image totake accurate,real-world measurements from images,regardless of cameraperspective or lens distortion.You can set simple calibration data by handor let IMAQ Vision automatically learn the calibration data for an image.You can then convert from pixels to real-world coordinates for simplemeasurements or correct the image so you can do complex measurements,such as blob analysis.Machine Vision VIsIMAQ Vision6.0includes a new palette of high-level machine vision VIsto simplify common machine vision tasks,such as selecting regions ofinterest in the shapes of points,lines,rectangles,and annuluses.Othermachine vision VIs give you the ability to define coordinate systems basedon features in an image,which allows you to make reliable measurementseven as objects in your image move and change orientation.Functions thatcount and measure objects,measure intensities,measure distances betweenedges,and locate edges all make machine vision tasks easier than ever.Analytic Geometry FunctionsThe new analytic geometry functions provide common analytic geometryalgorithms,such as line fitting with outlier rejection,circle and ellipsefitting,calculating line intersections,bisecting lines,and finding the anglebetween lines.You can also use them to calculate polygon areas,get pointsalong a line or region of interest,and create a coordinate reference systembased on an arbitrary plane.Regions of InterestTwo new regions of interest—the rotated rectangle and the annulus—give you more flexibility in selecting particular regions in an image forprocessing and analysis.These new regions work with all new machinevision VIs and existing functions.Image Display OptionsIMAQ Vision6.0allows you to specify display options for16-bit grayscaleimages.You can choose to bitwise-shift the pixel values to use the mostsignificant bits,choose to have IMAQ Vision automatically use thedynamic range of pixel values in an image to scale the image to an8-bitrange,or choose to specify a user-defined range of pixel values todynamically scale into an8-bit range.©National Instruments Corporation3IMAQ Vision for LabVIEW Release NotesAbout Your IMAQ Vision Documentation SetIn addition to these release notes,the IMAQ Vision documentation setconsists of the following:•The IMAQ Vision Concepts Manual contains vision conceptualinformation.Read this document if you are new to vision.•The IMAQ Vision for LabVIEW User Manual contains information onhow to build your vision applications using IMAQ Vision forLabVIEW.•The IMAQ Vision for LabVIEW online help(from inside theLabVIEW environment:Help»IMAQ Vision)contains referenceinformation about IMAQ Vision VIs.•The IMAQ Vision examples help file(from inside the LabVIEWenvironment:Help»Search IMAQ Examples)contains links to allinstalled IMAQ Vision examples.•The readme.txt file(located on your IMAQ Vision installation CD)contains last-minute information concerning this release of IMAQVision for LabVIEW.For your convenience,all IMAQ Vision documentation is also availablein PDF format,which you can access from the Start»Programs»National Instruments»Vision»Documentation menu.。
LabView部分视觉函数中文解说
IMAQ Learn Pattern 2 VI在匹配阶段创建您要搜索的图案匹配的模板图像的描述,此描述的数据被附加到输入模板图像中。
在匹配阶段,从模板图像中提取模板描述符并且用于从检查图像中搜索模板。
Image:是一个您要搜索模板图像的参考检查图像。
Learn Pattern Setup Data(学习模式设置数据):是一个字符串,包含从本控件或从高级控件(IMAQ Advanced Setup Learn Pattern 2 VI)获得的信息。
如果此引脚没有连接,在学习阶段VI使用默认参数。
Learn Mask(学习面膜):是一个可选的屏蔽图像,此图片必须是U8模式的图像。
在VI中只学习那些在源图像中相应掩模为零的像素,非零像素被忽略。
不要设置这个参数来学习整个图像。
Template Image Out:是一个参考的模板,此模板图像包含的数据定义在匹配阶段的模板模式IMAQ Setup Learn Pattern 2 VI设置学习阶段,图案匹配过程中使用的参数。
执行IMAQ Learn Pattern 2 VI之前执行此VI。
几何图案学习创建一个匹配阶段您要搜索的的模板图像的描述。
此数据被附加到描述输入模板图像。
在匹配阶段,描述数据从模板图像中提取,并用于检查图像中并搜寻模板。
Origin Offset(原点偏移):指定的VI模板图像的中心与模板的起偏移的像素数。
原点偏移用于IMAQ Match Geometric Pattern 2VI设置每个模板匹配的匹配结果集内的目标图像的元素位置,默认值是(0,0),设置的模板图像的中心作为原点的模板Template Image:是一个在匹配阶段您要搜索检查模板图像的参考图像。
Learn Geometric Pattern 2 Setup Data(几何图案学习的设置数据):是一个字符串,其中包含从IMAQ Setup Learn Geometric Pattern 2 VI或IMAQ Advanced Setup Learn Geometric Pattern 2 VI获得的信息。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
IMAQ模块介绍一.LabVIEW机器视觉前面板上的模块有以下几类(如图1所示)1.IMAQ Image.ctl2.Image Display control3.IMAQ Vision controls4.Machine Vision controls图11 IMAQ Vision controls对图像进行分析和处理所用到的一些控件,包括图像的类型,图像处理的方式和不同的形态算子以及颜色的类型的选择等等。
如图2图21.1 Image Type用于图片类型的选择,可以选择的类别有8bits ,16bits ,Float ,Complex ,RGB 和HSL 。
一般用在从文件中读取图片时类型的选择。
1.2 ROI DescriptorROI 区域的描述。
ROI 是Region Of Interesting 的简称,中文应该翻译为目标区域。
一般用在一个大图中取一块特定形状的区域,以便后续的处理和分析。
ROI 为一簇数据,包括一个整数数组和一个簇组成的数组。
整数数组内有4个元素,为图形最小外接矩形的四条边的坐标。
簇数组中的簇由轮廓类型(整数),ROI 类型(整数)和图形坐标点(为数组,根据ROI 类型的不同,数组的定义也不同)1.3Optional Rectangle选择的矩形区域,为四个元素的数组,代表矩形的四条边的坐标。
1.4Color Mode色彩模式,彩色图形的显示和处理模式,包括RGB,HSL,HSV,HIS 四种。
1.5Threshold Range阀值范围,为一包含两个数组元素的簇,常用于灰度或色彩图像阀值处理模块中。
1.6 Convolution Kernel二维浮点数组成的数组,用于构造一些算法的算子。
1.7 Morphology Operation形态算法的选择。
可以选择不同的数据处理方式。
1.8 Structuring Element结构元素,为二维的整数数组。
2 Machine Vision controls机器视觉中用到的一些控件,只要是对图像画面进行选择的一些工具,包括点,线和面的选择以及坐标系的设定。
如图3所示2.1 Point点的选择,包括两个元素的簇,分别为横坐标和纵坐标。
2.2 Line线的选择,包括四个元素的簇,分别为起点和终点的横坐标和纵坐标。
2.3 Rectangle面的选择,包括五个元素的簇,分别为对角线两点横坐标和纵坐标,以及矩形选择的角度。
2.4 Circle环形面,包括六个元素的簇,分别为圆心坐标,内外半径的长度以及起始角和终止角。
图3二以上都是程序前面板上所用到的控件,而LabVIEW强大的图像处理功能都是通过其程序面板上的功能节点来实现的。
主要的节点可以分为以下四大类,如图41 Image Acquisition2 Vision Utilities3 Image Processing4 Machine Vision图41 Image Acquisition图像采集功能模块,主要是通过NI的系列图像采集板卡来获得图像。
节点包括任务的建立,设备的初始化以及硬件参数的设定等功能节点。
如图5图52 Vision Utilities视觉应用模块,用来对图像进行一些初步的整体操作。
如图6图62.1 Image Management图像管理模块,包括建立和清除图像任务,获取图像的各类信息,图像的类型转换等功能节点。
如图72.1.1Create 创建一个图像任务2.1.2Dispose 清除图像任务2.1.3Get Image Size获得图像的大小信息2.1.4Set Image Size 设置图像的大小2.1.5Get Image Info 获得图像信息,包括图像的大小,名称,分辨率等2.1.6Copy 拷贝图像2.1.7Image to Image 一个图像映射到另一个图像上2.1.8Get Offset 针对于mask而言。
获得Mask在图像中的偏移量。
2.1.9Set Offset 针对于mask而言。
设定Mask在图像中的偏移量。
2.1.10Cast Image 图像类型的转换。
2.1.11 Is Vision Info Present 判断图像中是否存在图像信息。
图72.2Files图像文件模块,完成对图像文件的读写,以及图像附加信息的读写操作。
图82.2.1Read File读取图像文件2.2.2Write File保存图像文件2.2.3Get File Info获得图像信息,包括图像的类型,分辨率大小2.2.4Write BMP File保存为BMP图像文件2.2.5Write JPEG File保存为JPEG图像文件2.2.5Write PNG File保存为PNG图像文件2.2.5Write TIFF File保存为TIFF图像文件2.2.6Read Image And Vision Info 读取图像及其附加信息。
2.2.7Write Image And Vision Info 保存图像及其附加信息。
2.3External Display图像的外部显示。
具体功能还不太清楚。
如图9所示图92.4Region of InterestROI模块,主要完成ROI和Mask之间的转化,ROI区域的设定以及在不同坐标系下的转换。
10如图图102.4.1ROIToMask2.4.2MaskToROI以上两者Mask和ROI之间的相互转换。
在一些图像的分析模块中,除了要求输入图片外,还要一个Mask,即只对图片中的Mask区域进行分析,这就要求把自己选择的ROI转换为Mask。
2.4.3Group ROIs把多个ROI数组转换为一个ROI区域。
其中转换后的ROI区域包含原ROI 数组的所有区域。
2.4.4Ungroup ROIs为2.4.3Group ROIs的逆运算,即把一个ROI区域转换为ROI数组,数组中的每个ROI都是一个图形轮廓。
2.4.5 TransformROI把ROI区域从一个坐标系转换为另一种坐标系中。
2.4.6 ROI Conversion ROI和各种点、线、面等各类图形之间的转换。
2.5Image Manipulation11图像处理模块。
包括图像的放大和缩小,平移以及旋转。
如图图112.5.1 Resample重新定义图像的大小,使用此模块可以放大或缩小图像。
2.5.2 Expand 通过调整整幅或一部分图片的分辨率,来放大图片。
2.5.3 Extract 通过调整整幅或一部分图片的分辨率,来缩小图片。
2.5.4 Interlace 分别提取一幅图像的奇偶像素,分成两幅图片。
2.5.5 Symmetry 得到一幅图像的对称图像2.5.6 Rotate得到一幅图像的旋转图像2.5.7 Shift 得到一幅图像的平移图像2.5.8 Unwrap 将环形的图片展开成矩形2.5.9 Clipboard To Image将剪贴的数据拷贝到图像2.5.10 Image To Clipboard 将图像拷贝到剪贴板2.5.11 3DView将图像进行三维变换2.6Pixel Manipulation图像像素处理模块。
对图像的像素直接进行操作,包括图像上点,线,面像素值的获取和设定,以及在图像中插入文本。
如图12图122.6.1 Get pixel value获得图像中某一点的像素值,仅限于灰度图像。
2.6.2 GetRowCol获得图像中某一行或者列的像素值,仅限于灰度图像2.6.3 GetPixelLine获得图像中某一条直线的像素值,仅限于灰度图像2.6.4 ImageToArray将图像转化为数组2.6.5 SetPixelValue 设置图像中某一点的像素值。
2.6.6 SetRowCol 设置图像中某一行或者列的像素值2.6.7 SetPixelLine 设置图像中某一条直线上点的像素值2.6.8 ArrayToImage 将数组转化为图像2.6.9 FillImage将图像中的某块区域用像素值填充2.6.10 Draw 在图像中绘制几何图形2.6.11 Draw Text在图像中添加文字2.7Overlay图像覆盖模块。
可以对图像上的某一点,线,面(多边形,矩形和圆)进行覆盖。
此种覆盖为非破坏性的覆盖,即不破坏原有的图像,覆盖信息可以另外和图像一起保存。
如图13图132.7.1 Overlay Points在图像中覆盖一点或是一组点2.7.2 Overlay Line 在图像中覆盖一条线2.7.3 Overlay Multiple Lines 在图像中覆盖多条直线或多边形2.7.4 Overlay Rectangle 在图像中覆盖一矩形2.7.5 Overlay Oval 在图像中覆盖一椭圆2.7.6 Overlay Arc 在图像中覆盖一弧形2.7.7 Overlay Bitmap 在图像中覆盖一位图2.7.8 Overlay Text 在图像中覆盖文字2.7.9 Clear Overlay在图像中清除覆盖2.7.10 Copy Overlay 在图像中拷贝覆盖2.7.11 Overlay ROI 在图像中覆盖ROI区域2.7.12 Merge Overlay 合并图像中的覆盖2.7.13 Read Image And Vision Info读取图像以及图像信息2.7.14 Write Image And Vision Info 写入图像以及图像信息上述读写图像及信息的模块,是将图像中的覆盖信息一块读取/保存的2.8Calibration校准模块。
校准由于相机镜头的光学畸变而或拍摄角度引起图像变化。
也包含像素坐标系和实际坐标系之间的转换节点。
如图14图142.8.1 Learn Calibration Template对校准模块进行学习2.8.2 Set Simple Calibration 对校准的设置2.8.3 Set Calibration Info 设置图像校准的信息2.8.4 Get Calibration Info 获得图像校准中的信息2.8.5 Convert Real World to Pixel 将实际坐标系转化为图像像素坐标系2.8.6 Convert Pixel to Real World 将图像像素坐标系转化为实际坐标系2.8.7 Correct Calibrated Image对图像进行校准2.8.8和2.8.9与2.7.13和2.7.14模块相同。
可以将图像校准信息也写入文件。
2.9Color Utilities颜色应用模块。
彩色图像中色彩的提取,图像中某点,线,面中色彩的设定或获取,以及不同色彩模型中的转换。
如图15图152.9.1 ExtractColorPlanes 从彩色图像中提取各颜色分量的图像2.9.2 ExtractSingleColorPlane 从彩色图像中提取单个颜色图像2.9.3 ReplaceColorPlane 色彩的替代2.9.4 GetColorPixelValue获得彩色像素点的值2.9.5 SetColorPixelValue 设置彩色像素点的值2.9.6 GetColorPixelLine获得图像中某条直线的像素值数组2.9.7 SetColorPixelLine 设置图像中某条直线的像素值2.9.8 ColorImageToArray将彩色图像转化为数组2.9.9 ArrayToColorImage将数组转化为彩色图像2.9.10 RGBToColor 2 将RGB制式的彩色图像转化为其它制式的彩色图像(如HSL, HSV, HSI)2.9.11 ColorToRGB 将其它制式的彩色图像(如HSL, HSV, HSI)转化为RGB制式2.9.12 ColorValueToInteger 将表示颜色的RGB三种分量转化为整数的形式2.9.13 IntegerToColorValue 将整数形式的颜色转化为RGB三种分量的形式3 Image Processing图像处理模块,主要是对灰度和彩色图像的处理。