示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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());
        }