<< 点击显示目录 >> 主页
mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 库 > 核心库 > ViBase > 功能块 功能说明 |
功能块 ViBaseSaveApplication 可用于将视觉组件上激活的视觉应用程序从相机模块保存到控制器。视觉组件上激活的视觉应用程序是通过 ViBaseLoadApplication 加载的最后一个 VA。如果功能块未加载任何视觉应用程序,则 AS 项目中 "视觉应用程序引用 "下配置的视觉应用程序即为激活的视觉应用程序。
必须引用摄像机模块的视觉组件(参见ViComponentType)。
此功能块的用例是视觉功能 "读码器"。通过创建用户定义的参数集(另请参阅使用参数模式 "用户定义 "处理配方)并使用参数优化对其进行训练,该视觉功能还可用于影响 mapp Vision HMI 应用程序之外的非循环参数。如果未保存经过训练的参数集,则在下次加载视觉应用程序时将被覆盖。如果 mapp Vision HMI 应用程序连接到摄像机,则也会重新加载视觉应用程序(另请参阅会话处理)。
图功能块 ViBaseSaveApplication
Function block ViBaseSaveApplication can be used to save the vision application active on the vision component from the camera module to the controller. The vision application active on the vision component is the last VA loaded via ViBaseLoadApplication. If no VA has been loaded with the function block, the vision application configured in the AS project under "Vision application reference" is the active VA.
The reference to the vision component of the camera module is required (see ViComponentType).
The use case for this function block is vision function Code Reader. This vision function can be used to also influence the acyclic parameters outside the mapp Vision HMI application by creating a user-defined set of parameters (see also Handling recipes with ParameterMode "User-defined") and to train them with ParameterOptimization. If a trained parameter set has not been saved, it will be overwritten the next time the vision application is loaded. The vision application is also reloaded if the mapp Vision HMI application is connected to the camera (see also Session handling).
Fig.: Function block ViBaseSaveApplication