Opc.Ua.Com.Server.ComDaGroup.SetDeadband C# (CSharp) Method

SetDeadband() public method

Sets the deadband for the group,
public SetDeadband ( float deadband ) : void
deadband float The deadband.
return void
        public void SetDeadband(float deadband)
        {
            TraceState("SetDeadband", deadband);
            ThrowIfDisposed();

            lock (m_lock)
            {
                this.Deadband = deadband;

                // need the EU Info if the deadband is specified.
                m_manager.UpdateItemEuInfo(this, m_items);

                // update filters for all items.
                UpdateDeadbandFilters(m_items);

                // update the items on the server.
                try
                {
                    m_subscription.ApplyChanges();
                }
                catch (Exception e)
                {
                    throw ComUtils.CreateComException(e, ResultIds.E_FAIL);
                }
            }
        }