Skip to Main Content
AVEVA Product Feedback


Status Completed
Created by Guest
Created on Aug 20, 2022

AF Analysis Function to Check for PI Point Existence

As a wide-scale analytics user, I  would like for there to be a function to check  if a PI Point exists. I have an element template that I use to represent a large number of assets. Some of these assets do not have PI-point based attributes that others do. In these cases, the analyses that  reference these attributes will fail because the points do not exist. If there was a way to check for the existence of these points, then I could utilize that in a conditional statement to  allow the analysis to output properly in the case of a non-existent point.
  • ADMIN RESPONSE
    Aug 20, 2022
    PI Server 2018 has been released.
  • Attach files
  • Guest
    Reply
    |
    Aug 20, 2022
    I don't believe this has been completes as noted by a number of users https://pisquare.osisoft.com/thread/15077-check-for-the-existance-of-a-tag-within-a-pi-analysis I can't use badval to skip invalid pi points when back filling. Is there another solution?
  • Guest
    Reply
    |
    Aug 20, 2022
    Would you please give an example why BadVal() check on your attribute is insufficient?
  • Guest
    Reply
    |
    Aug 20, 2022
    In response to Stephen Kwan, "Would you please give an example why Bad..." It appears when actually running the analysis that AF throws an error if the tag doesn’t exist before it runs the qualifying if statements. This prevents AF from backfilling data. It is documented here in the community https://pisquare.osisoft.com/thread/31533-check-if-an-attribute-is-pointing-to-a-tag-that-exists-and-if-exists-returns-the-tag-value   and with my case Customer Portal Case 00555160 - AF - tagexist  previous case  952032            Graham Eason C.E.T Power Quality & Performance Distribution Asset Management Engineering & Construction   Manitoba Hydro (18) 360 Portage Avenue Winnipeg, MB, R3C0G8     Phone (204) 360-7652 Cell    (204) 232-9584 Fax (204) 360-6171
  • Guest
    Reply
    |
    Aug 20, 2022
    In the upcoming 2018 SP2 release, if you were backfilling and you have at least 1 valid PI Point, the backfill operation will continue and a warning will be presented to you if there are missing PI Points. I believe that satisfies your use case. Having said that, there is not a function that would allow you to check for existence of a PI Point.
  • Guest
    Reply
    |
    Aug 20, 2022
    In response to Stephen Kwan, "In the upcoming 2018 SP2 release, if you..." Thanks     Graham Eason C.E.T Power Quality & Performance Distribution Asset Management Engineering & Construction   Manitoba Hydro (18) 360 Portage Avenue Winnipeg, MB, R3C0G8     Phone (204) 360-7652 Cell    (204) 232-9584 Fax (204) 360-6171