Esempio n. 1
0
 public void UpdateQuality(DataAttribute attrib, ushort value)
 {
     if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero)
     {
         throw new Exception("UpdateInt64AttributeValue: null argument");
     }
     IedServer_updateQuality(self, attrib.GetLibraryObject(), value);
 }
Esempio n. 2
0
 public void UpdateVisibleStringAttributeValue(DataAttribute attrib, string value)
 {
     if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero)
     {
         throw new Exception("UpdateBooleanAttributeValue: null argument");
     }
     IedServer_updateVisibleStringAttributeValue(self, attrib.GetLibraryObject(), value);
 }
Esempio n. 3
0
 public uint GetBitStringAttributeValue(DataAttribute attrib)
 {
     if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero)
     {
         throw new Exception("GetBitStringAttributeValue: null argument");
     }
     return(IedServer_getBitStringAttributeValue(self, attrib.GetLibraryObject()));
 }
Esempio n. 4
0
 public void UpdateUnsignedAttributeValue(DataAttribute attrib, uint value)
 {
     if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero)
     {
         throw new Exception("UpdateUnsignedAttributeValue: null argument");
     }
     IedServer_updateUnsignedAttributeValue(self, attrib.GetLibraryObject(), value);
 }
Esempio n. 5
0
            public MmsValue GetAttributeValue(DataAttribute attrib)
            {
                if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero)
                {
                    return(null);
                }
                IntPtr val = IedServer_getAttributeValue(self, attrib.GetLibraryObject());

                if (val == IntPtr.Zero)
                {
                    return(null);
                }
                return(new MmsValue(val));
            }