Exemple #1
0
        /// <summary>
        /// 标准电流型传感器的默认转换
        /// </summary>
        /// <param name="rangeLo">量程低端</param>
        /// <param name="rangeHi">量程高端</param>
        public static AcquirePointConversion GetFromCurrentType(double rangeLo, double rangeHi)
        {
            AcquirePointConversion o = new AcquirePointConversion();

            o.InputLo = 5;
            o.InputHi = 20;
            o.RangeLo = rangeLo;
            o.RangeHi = rangeHi;
            return(o);
        }
 public ControllerBaseImpl(ControllerTypeConst controllerType, int controllerId, string controllerName, string controllerAddress, short controllerAddressPort, short controllerChannelCount)
 {
     _ControllerType         = controllerType;
     _ControllerId           = controllerId;
     _ControllerName         = controllerName;
     _ControllerAddress      = controllerAddress;
     _ControllerAddressPort  = controllerAddressPort;
     _ControllerChannelCount = controllerChannelCount;
     _APConversion           = AcquirePointConversion.GetDefaultNullConversion();
 }