AnsweredAssumed Answered

How do I update a PIPoint on both members of a collective?

Question asked by Ron.Tarkowski on Jul 8, 2015
Latest reply on Jul 8, 2015 by Ron.Tarkowski

I have very simple piece of code that inserts a new value into a PI Point and the value gets updated on the primary member of a collective, but not the secondary.  How do I update it on the secondary?  The secondary reports the value as "Pt Created" (It is a newly created tag).


PI AF Client 2014 R2 SP1 (v4.0.30319)

PI AF Developer Tools 2014 R2

PI Buffer Subsystem service is Started (Manual)





static public void TestDefault()


    PIServers piServerList = new PIServers();


    foreach (PIServer server in piServerList)

        Console.WriteLine("{0}", server.Name);


    PIServer defaultPiServer = piServerList.DefaultPIServer;



    PIPoint pt = PIPoint.FindPIPoint(defaultPiServer, "HCPR_SJNO_GE_TEST");

    Console.WriteLine("Before Update:   {0}-{1}", pt.Name, pt.Snapshot());


    AFTime time = new AFTime(Convert.ToDateTime("7/8/2015 17:10"));

    AFValue value = new AFValue(11.0, time);

    pt.UpdateValue(value, OSIsoft.AF.Data.AFUpdateOption.Replace, OSIsoft.AF.Data.AFBufferOption.BufferIfPossible);


    PIPoint pt2 = PIPoint.FindPIPoint(defaultPiServer, "HCPR_SJNO_GE_TEST");

    Console.WriteLine("After Update:    {0}-{1}", pt2.Name, pt2.Snapshot());