7 Replies Latest reply on Sep 6, 2011 11:25 PM by Ahmad Fattahi

    how to AVOID dynamic type casts when retrieving PiValue.Value

    gregorvilkner

      Hi there,

       

      we are working on some really simple PI integration in a .net plugin environment.

       

      to obtain values of PiPoints we used to do stuff like (double)aPiPoint.Data.Snapshot.Value -

       

      but here we get exemption stating "Dynamic operations can only be performed in homogenous AppDomain."

       

      Is there a way to get a PiValue.Value avoiding the dynamic nature of the .Value property of a PiValue?

       

      Kind regards,

       

      Gregor