I am trying to write values into a PI collective with the PI SDK version 184.108.40.2065.
I connect to the collective, fetch PI Tags and update values on them. The PI Points are only written in the primary server though.
I thougth I read somewhere this is supported in version 220.127.116.115.
Can somebody explain to me how to write values into a PI collective. Do I have to itterate through the PI Servers which are in the collective and address them one by one?
Do I need to use the PI buffering system to let this work?
How do I do it (simplified):
Dim piSdk As PISDK.PISDK = New PISDK.PISDK()
Dim piServer As PISDK.Server = piSdk.Servers("CollectiveName")
Dim ptList As PointList
ptList = piServer.GetPoints("Pointsource='M'")
For Each pt As PIPoint In ptList
pt.Data.UpdateValue(item.Value, item.TimeStamp.ToString("dd-MMM-yyyy HH:mm"), DataMergeConstants.dmReplaceDuplicates)
Arie van Boven