how to AVOID dynamic type casts when retrieving PiValue.Value

Discussion created by gregorvilkner on Sep 2, 2011
Latest reply on Sep 6, 2011 by Ahmad Fattahi

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,