예제 #1
0
        //private void ModifyServerCommunication(string csPathname)
        //{
        //    var commNamePrefix = csPathname + "Communication.";

        //    _log.FunctionEntryMessage("modify communication");

        //    _driverContext.IncreaseDoubleProperty(commNamePrefix + "PublishInterval", -100000.0, 100000.0);
        //    _driverContext.IncreaseUnsignedProperty(commNamePrefix + "LifeTimeCount", 1, 100000);
        //    _driverContext.IncreaseUnsignedProperty(commNamePrefix + "KeepAliveCount", 1, 1000);
        //    _driverContext.IncreaseDoubleProperty(commNamePrefix + "SamplingInterval", -100000.0, 100000.0);

        //    _log.FunctionExitMessage();
        //}

        private void ModifyServerProtocol(string csPathname)
        {
            var protNamePrefix = csPathname + "Protocol.";

            _log.FunctionEntryMessage("modify protocol");

            _driverContext.IncreaseDoubleProperty(protNamePrefix + "PublishInterval", -100000.0, 100000.0);
            _driverContext.IncreaseUnsignedProperty(protNamePrefix + "LifeTimeCount", 1, 100000);
            _driverContext.IncreaseUnsignedProperty(protNamePrefix + "KeepAliveCount", 1, 1000);
            _driverContext.IncreaseDoubleProperty(protNamePrefix + "SamplingInterval", -100000.0, 100000.0);
            _driverContext.IncreaseUnsignedProperty(protNamePrefix + "DataChangeFilter", 0, 1);
            _driverContext.SetBooleanProperty(protNamePrefix + "AbsoluteDeadband");
            _driverContext.SetBooleanProperty(protNamePrefix + "PersistentNodeIDs");
            _driverContext.SetBooleanProperty(protNamePrefix + "ReadInitialValues");
            _driverContext.SetBooleanProperty(protNamePrefix + "ArraysOnIndexBasis");

            _log.FunctionExitMessage();
        }