Пример #1
0
 public override double GetValue()
 {
     if (Driver == "Sim driver")
     {
         return(SimulationDriver.ReturnValue(IOAddress));
     }
     else
     {
         return(TagProcessing.AddressValues[IOAddress]);
     }
 }
Пример #2
0
        public override double GetValue()
        {
            double value = SimulationDriver.ReturnValue(IOAddress);

            if (value > HighLimit)
            {
                value = HighLimit;
            }
            else if (value < LowLimit)
            {
                value = LowLimit;
            }

            return(value);
        }