重新创建视觉应用程序

<< 点击显示目录 >>

主页  mappVision帮助助手 > 机器视觉帮助 > mapp Vision  > 编程 > 编辑器 > 视觉应用程序编辑器(视觉) > 编辑视觉应用 >

重新创建视觉应用程序

默认情况下,无需配置图像采集 (<ImageAcquisition>) 即可运行视觉应用程序。要调整图像采集,必须在表格编辑器中打开视觉应用程序。

addingcomponents_03_openvaintableeditor

图在配置视图中,可通过快捷菜单在表格编辑器中打开视觉应用程序。

va01_imageacquisition

图:可在表格编辑器中配置图像采集。

信息:

在构建之前,不会根据视觉程序使用的硬件模块检查图像采集设置的兼容性!

下面几页将介绍如何定义图像评估和视觉程序的 I/O 接口。这需要在可视化编辑器中进行。必须事先关闭表格编辑器。

空视觉应用程序

在配置中打开新的视觉程序时,可视化编辑器中将显示空的视觉程序。

emptyva

图通过拖放,可以在目录中为视觉应用添加一个或多个视觉功能实例。

向视觉应用程序添加元素

从对象目录中将视觉应用程序的新元素拖放到视觉应用程序中。这些元素的属性可在属性窗口中显示和编辑。

元素之间的接线可直接从连接器拖到连接器。下文将详细介绍各个元素及其处理方法。

vfadded

图一个视觉功能 "匹配 "实例已添加到视觉应用程序中。

视觉应用程序的属性

如果未选择任何元素,则可在 "属性 "窗口中看到视觉应用程序的名称及其编译器设置。

名称:

视觉程序的名称是唯一的。只能在表格编辑器中更改。

编译器设置:

选项

说明

解释

直接解释图像评估代码,无需事先编译。

这是包括 mapp Vision 5.13 在内的技术软件包的唯一选项。

启动编译器

用于图像评估的即时 (JIT) 编译器。

适用于 mapp Vision 5.14 及更高版本的技术软件包。

加快了视觉功能的处理时间,但牺牲了视觉应用程序的加载时间。

信息:

根据所使用的视觉功能,可将处理时间加快 5%-100%!

更多详情,请参阅视觉功能 - 执行时间

无论是在调试期间还是通过功能块加载时,加载视觉应用程序的时间都会更长。

对于只有一个视觉功能的视觉应用,加载时间最多可延长 100 秒。

如果视觉应用程序具有多个视觉功能,且设计用于视觉智能相机,则每个视觉功能1) 的加载时间最多可延长 100 秒。

1) 启动编译器选项导致的加载时间延长与是否使用一个或多个视觉功能类型实例无关。


The image acquisition (<ImageAcquisition>) does not need to be configured by default for the vision application to run. To adjust the image acquisition, the vision application must be opened in the table editor.

addingcomponents_03_openvaintableeditor

Fig.: In the Configuration View, a vision application is opened in the table editor via shortcut menu.

va01_imageacquisition

Fig.: The image acquisition can be configured In the table editor.

Information:

The compatibility of the image acquisition settings is not checked against the hardware module used by the vision application until build time!

The following pages describe how to define image evaluation and the I/O interface of the vision application. This takes place in the visual editor. The table editor must be closed beforehand.

Empty vision application

When a new vision application is opened in the configuration, the empty vision application is displayed in the visual editor.

emptyva

Fig.: The catalog offers the possibility of adding one or more vision function instances to the vision application using drag-and-drop.

Adding elements to the vision application

New elements for the vision application are dropped into the vision application from the Object Catalog. The properties for these elements are displayed and edited in the properties window.

Wiring between elements is dragged directly from connector to connector. Individual elements and how they are handled is described in more detail below.

vfadded

Fig.: An instance of vision function Matching has been added to the vision application.

Properties of the vision application

If no element is selected, the name of the vision application and its compiler settings are visible in the Properties window.

Name:

The name of the vision application is unique. It can be changed only in the table editor.

Compiler settings:

Option

Description

Interpreted

The code for image evaluation is interpreted directly without having to be compiled beforehand.

This is the only option for Technology Packages up to and including mapp Vision 5.13.

Startup compiler

Just-in-time (JIT) compiler for image evaluation.

Option for Technology Packages in mapp Vision 5.14 and later.

Speeds up the processing time of vision functions at the expense of the loading time of the vision application.

Information:

Depending on the vision function used, this results in acceleration of the processing time by 5% to 100%!

For additional details, see Vision functions - Execution times.

Loading the vision application can take longer, both during commissioning and when loading via function block.

For a vision application with only one vision function, the loading time can increase by up to 100 seconds.

In a vision application with multiple vision functions that is designed for use on a vision Smart Camera, the loading time can increase by up to 100 seconds per vision function1) used.

1) The longer loading time, caused by the startup compiler option, is independent of whether one or more instances of a vision function type are used.