Пример #1
0
 public void CalculateSys(List <double> dataList)
 {
     foreach (var value in dataList)
     {
         analyselist.Add(value);
     }
     if (analyselist.Count == 3 * _daqDTO.SampleRate)
     {
         _sys = Math.Round(analyselist.Max());
         _alarm.CheckAkutAlarm(_sys);
         _alarm.CheckSubakutAlarmSys(_sys);
         Notify();
         if (sys != _sys)
         {
             //_alarm.CheckSubakutAlarmSys(_sys);
             sys = _sys;
         }
         analyselist.RemoveRange(0, 100);
     }
 }