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); }
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); }
public uint GetBitStringAttributeValue(DataAttribute attrib) { if (attrib == null || attrib.GetLibraryObject() == IntPtr.Zero) { throw new Exception("GetBitStringAttributeValue: null argument"); } return(IedServer_getBitStringAttributeValue(self, attrib.GetLibraryObject())); }
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); }
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)); }