Exemplo n.º 1
0
        /// <summary>
        /// 测量完成事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnMeasurementCompleted(ThroughputMeasurementCompletedEventArgs e)
        {
            CanMeasure = true;

            RunningStatus = e.IsSuccess ? "成功" : "失败";

            if (Power?.IsConnect == true)
            {
                Power.IsEnableOutput = false;
            }

            Thread.Sleep(100);
            PLC.PWMSwitch  = false;
            PLC.FlowSwitch = false;

            lock (lockObject)
            {
                IsMeasuring = false;
            }
            MeasurementCompleted?.Invoke(this, e);
        }
        /// <summary>
        /// 测量完成事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnMeasurementCompleted(ThroughputMeasurementCompletedEventArgs e)
        {
            CanMeasure = true;

            Power.IsEnableOutput = false;
            PLC.FlowSwitch       = false;
            PWM.Frequency        = 0;
            if (e.IsSuccess == true)
            {
                RunningStatus = "成功";
            }
            else
            {
                RunningStatus = "失败";
            }

            lock (lockObject)
            {
                IsMeasuring = false;
            }

            MeasurementCompleted?.Invoke(this, e);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 测量完成事件
 /// </summary>
 /// <param name="e"></param>
 protected void OnMeasurementCompleted(ThroughputMeasurementCompletedEventArgs e)
 {
     MeasurementCompleted?.Invoke(this, e);
 }