Пример #1
0
        internal Sample GenerateSample(long i_Value, DateTime i_Date, string i_Comment, bool i_NotifayAlarm)
        {
            double sensorValue = GetSensorValue(i_Value);

            SensorAlarm.eStatus alarmStatus = Alarm.CheckSampleAndNotifyOnAlarm(sensorValue, i_NotifayAlarm && Alarm.Enabled);

            return(new Sample(i_Date, sensorValue, alarmStatus, i_Comment));
        }