/// <summary> /// 更新硬件 /// </summary> public void UpdateHardware() { if (Scope?.IsConnect != true) { Scope?.Connect(); } if (Power?.IsConnect != true) { Power?.Connect(); } if (PLC?.IsConnect != true) { PLC?.Connect(); } if (PWM?.IsConnect != true) { PWM?.Connect(); } NotifyOfPropertyChange(() => IsHardwareValid); NotifyOfPropertyChange(() => CanMeasure); }