4 Replies Latest reply on Feb 14, 2018 3:06 PM by Rick Davin

    update multiple pi points simultaneously using af sdk

    santhosh2r2

      Hi,

      i am trying to find out for a client of mine, if it is possible to update multiple pi points simultaneously?

      as of now we are using a for loop and update each pipoint individually.

       

                      PIPoint[] points = FindPiPoints(signals);
                      for (int i = 0; i < signals.Length; i++)
                      {
                          AFAttribute afattribute = new AFAttribute(points[i]);
                          AFValue v = new AFValue(afattribute, values[i], now, null);
                          v.Status = (AFValueStatus)qualifiers[i];
                          afValues.Add(v);
                      }
      

       

      this is for optimizing the performance. The idea of the app is to read and update thousands of pipoints on 1 sec intervall.

      Anyother inputs / thoughts are also welcomed.

       

      Thanks & Regards

      Santhosh Ramesh