I would like to export Event Frame data to PI tags upon closing the Event Frame so that I can use in a dashboard.
I do not want to use excel as "Excel is not my friend" and the dashboard should be in Coresight.
In stock AF i don't know any other way than to replicate the EF logic into an analysis. Not what you would want. EF's are a one-way street: they can consume data from elements, but elements cannot consume data from EventFrames.
One option sometimes seen is to build a loop using AF tables and OLEDB Enterprise to query your EventFrame data. it works, but has it's drawbacks in terms of performance, architecture, etc.
Another option is to build a custom DataReference that finds your EventFrame and reads the data. Then you need to duplicate the trigger logic for the End trigger and use that to kick off an analysis that reads the EF data and copies it to an PI Point. And then pray the EF ending and the Analytic execute in the correct sequence. So, not recommended at all.
What's the source of this data in your Event Frame? Is it an Analysis variable, an AF Attribute, a PI Point ?
Its an AF formula attribute that performs a calculation based on Tag data.
Hope your keeping well.
Thanks for the response, they are the options I have found too. Would be great if they include this as a feature. Enhancement request for something similar below, worth a vote.
Voted. It's a very simple request, but thinking a bit further, a simple solution to achieve a very powerful mechanism!
Question out of curiosity, because I might have to use custom data reference feature in near future for this requirement:
And then pray the EF ending and the Analytic execute in the correct sequence. So, not recommended at all.
We know that code get data from EF only after it ends. Have you experienced problem like this?
Can we know dynamically (like subscuption feature of Web API for tag) that Event Frame has been generated for our code rather than check it periodically ?
Not one that i know of. So polling is youe best bet (which is more or less the same as the subscription anyway).
You do have the call to request all changes since your last call, so you could build an effective polling mechanism for that.
Thanks for reply.
I thought we get better performance from subscription then polling, haven't checked for large scale.
Definitely will take into consideration while devising polling mechanism.
Retrieving data ...