Aantje

Writing into a PI Collective with 1.4 SDK fails

Discussion created by Aantje on Jun 26, 2013
Latest reply on Jun 27, 2013 by Aantje

Hi all,

 

 

 

I am trying to write values into a PI collective with the PI SDK version 1.4.2.445. 

 

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 1.4.2.445.

 

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)

 

Next

 

 

 

Kind regards,

 

Arie van Boven

Outcomes