As long as the Event Frame is nto triggered for the first time you won't have an event archived on your PI point.
However, what you can do is to manually set an initial value of 0 on the newly created PI point from SMT-> Archive Editor.
I hope this information helps you!
It isn't posible because i have an atuomated proccess of device creation in some AF servers that to créate PI tags in some PI data archive servers in a automatic mode without manual intervention.
My target is keep the same lineament. The automated devices creation process have loads from the order of thousands of devices per ejecution.
In this sense, there is an automated or not-manual mode of to set an default value for de PI tags?
Thank you for your reply!
Unfortunately, I cannot think of anything that would allow to automate writing a default value on a PI Tag in this particular situation.
Let's see if our PI Square community has an idea regarding this.
Through an SQL query in "base" table of PI data archive database is it posible?
What is your automated process? If it's custom code using the AF SDK or PI OLEDB Enterprise, you could simply add some logic to write a value of 0 after the PI Points are created.
1 of 1 people found this helpful
This is most intriguing. How do you trigger on something that isn't triggered? If an event does not occur, how would you know when to do something? Cristhian Castro , I see you are a PI Developers Club member. Are you a developer or know some programming?
An AF SDK application could be written, and it could monitor the PI Data Archive for any new PI points being created. That's at least one way to capture some event with that event being the tag creation, not the event frame generation. I would think such an application would need to be a Windows Service running perpetually in the background.
Perhaps the easier solution would be within your downstream application that tries to read the duration attribute. How is this done? Rather than reading the duration attribute directly, could you pad some logic in a Formula data reference to return 0 if BadVal is true, otherwise return the duration as is?