/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(FrequencyMeasurementCompletedEventArgs e) { CanMeasure = true; Power.IsEnableOutput = false; PLC.PWMSwitch = false; PWM.Frequency = 0; if (e.IsSuccess == true) { RunningStatus = "成功"; MaxFrequency = e.MaxLimitFrequency; } else { RunningStatus = "失败"; MaxFrequency = -1; } lock (lockObject) { IsMeasuring = false; } MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(PNVoltageMeasurementCompletedEventArgs e) { RunningStatus = e.IsSuccess ? "成功" : "失败"; CanMeasure = true; if (Power?.IsConnect == true) { Power.IsEnableOutput = false; } PVoltage = e.PositiveVoltage; NVoltage = e.NegativeVoltage; lock (lockObject) { IsMeasuring = false; } MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(InputOutputMeasurementCompletedEventArgs e) { CanMeasure = true; RunningStatus = e.IsSuccess ? "成功" : "失败"; PLC.PWMSwitch = false; PLC.FlowSwitch = false; if (Power?.IsConnect == true) { Power.IsEnableOutput = false; } lock (lockObject) { IsMeasuring = false; } MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(FrequencyMeasurementCompletedEventArgs e) { MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(ThroughputMeasurementCompletedEventArgs e) { MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(InputOutputMeasurementCompletedEventArgs e) { MeasurementCompleted?.Invoke(this, e); }
/// <summary> /// 测量完成事件 /// </summary> /// <param name="e"></param> protected void OnMeasurementCompleted(PNVoltageMeasurementCompletedEventArgs e) { PLC.Enable = false; MeasurementCompleted?.Invoke(this, e); }