public OpcGroup GetPublicGroup(string groupName) { if (this.ifServer == null) { Marshal.ThrowExceptionForHR(-2147467260); } OpcGroup group = new OpcGroup(ref this.ifServer, true, groupName, false, 0x3e8); group.internalAdd(null, null, 0); return(group); }
public OpcGroup AddGroup(string groupName, bool setActive, int requestedUpdateRate, int[] biasTime, float[] percentDeadband, int localeID) { if (this.ifServer == null) { Marshal.ThrowExceptionForHR(-2147467260); } OpcGroup group = new OpcGroup(ref this.ifServer, false, groupName, setActive, requestedUpdateRate); group.internalAdd(biasTime, percentDeadband, localeID); return(group); }
public override string ToString() { StringBuilder builder = new StringBuilder("OPCIST: ", 0x100); builder.AppendFormat("error=0x{0:x} hclt=0x{1:x}", this.Error, this.HandleClient); if (this.Error == 0) { builder.AppendFormat(" val={0} time={1} qual=", this.DataValue, this.TimeStamp); builder.Append(OpcGroup.QualityToString(this.Quality)); } return(builder.ToString()); }