PI System Analysis Triggers: Incorporating EMDVB Attributes in Templates
Learn how to effectively manage PI System analysis triggers when working with dynamically created EMDVB attributes in element templates.
Roshan Soni
PI System Analysis Triggers: Incorporating EMDVB Attributes in Templates
In the realm of PI System analysis, configuring triggers on specific attributes can sometimes lead to head-scratching scenarios, especially in cases involving dynamically created attributes from interfaces such as EMDVB (Event Message Driven VB). Here, we explore a common issue and provide insights into how to effectively manage analysis triggers when working with EMDVB attributes alongside PI Tags defined in element templates.
Understanding the Challenge
Consider a typical analysis scenario where a user has an analysis defined on a PI AF element template that utilizes four PI Tags as inputs. While three of these tags are firmly rooted in the element template, the fourth, let’s call it BatchID, is dynamically created and populated by an EMDVB interface. The challenge arises when an attempt is made to configure the analysis to trigger specifically on the EMDVB-generated attribute, BatchID. However, the “trigger on” configuration fails to list BatchID as an option.
The reason for this is rooted in the nature of template configuration: analysis triggers can only be set on attributes explicitly defined within the template context. Since BatchID is an alias attribute generated by EMDVB and not initially part of the template, it remains invisible in the “trigger on” list.
The Key Solution
To resolve this conundrum, the attribute BatchID needs to be explicitly added to the template. This inclusion allows the attribute to be recognized within the template’s context, making it available as a trigger option.
Steps to Add EMDVB Attributes to a Template:
- Evaluate Template Needs: Confirm that all instances of this template require the
BatchIDattribute for triggering analyses. - Modify Template: Add a placeholder for the
BatchIDattribute within the element template. - Consider Default Configuration: Configure any necessary default settings or descriptions for clarity.
- Check for Conflicts: Ensure that adding this static definition does not interfere with EMDVB’s functionality in terms of writing data.
Addressing the Concerns
A point of contention often arises about whether this addition impacts EMDVB's writing operations, or if it could potentially lead to duplicated attributes. Here’s what to consider:
- Writing Values: Adding
BatchIDto the template should not impede EMDVB's ability to write values unless the attribute reference path is significantly altered. - Duplication: Properly added, the
BatchIDattribute should leverage the same tag and avoid duplication, as long as naming conventions are consistent and the existing EMDVB logic automatically aligns with AF configurations.
Conclusion
Incorporating dynamically created attributes like those from EMDVB into PI AF templates simplifies the management of analysis triggers and enhances flexibility in analysis configuration. By ensuring that all necessary attributes are well-defined in templates, users can maintain robust trigger configurations and avert potential pitfalls in automated data processes. Always ensure to align templates with both operational needs and interface configurations for seamless integration.
Tags
About Roshan Soni
Expert in PI System implementation, industrial automation, and data management. Passionate about helping organizations maximize the value of their process data through innovative solutions and best practices.
No comments yet
Be the first to share your thoughts on this article.
Related Articles
Enhancing PI ProcessBook Trends with Banding and Zones: User Needs, Workarounds, and the Road Ahead
A look at the user demand for trend banding/zoning in OSIsoft PI ProcessBook, current VBA workarounds, UI challenges, and how future PI Vision releases aim to address these visualization needs.
Roshan Soni
Migrating PIAdvCalcFilVal Uptime Calculations from PI DataLink to PI OLEDB
Learn how to translate PI DataLink's PIAdvCalcFilVal advanced calculations—like counting uptime based on conditions—into efficient PI OLEDB SQL queries. Explore three practical approaches using PIAVG, PIINTERP, and PICOunt tables, and get tips for validation and accuracy.
Roshan Soni
Understanding PI Web API WebID Encoding: Can You Generate WebIDs Client-Side?
Curious about how PI Web API generates WebIDs and whether you can encode them client-side using GUIDs or paths? This article explores the encoding mechanisms, current documentation, and best practices for handling WebIDs in your applications.
Roshan Soni