internal static void WriteSensorStatistic(ADatabase db, DateTime dt, Sensor sensor, ABaseblock device, int experimentGroup, int count)
 {
     try
     {
         int expID = GetExperimentsID(db, experimentGroup, device.sysChannelsIDs[count]);
         WriteParameter(db, dt, expID, sensor.SensorCalcLevel, ParametersID.LevelSensor);
         WriteParameter(db, dt, expID, sensor.SensorTemperature, ParametersID.PlateTemperature);
         if (sensor.SensorDelays != null)
         {
             WriteParameter(db, dt, expID, sensor.SensorDelays[0], ParametersID.ZondPositionSensor);
             WriteParameter(db, dt, expID, sensor.SensorDelays[1], ParametersID.OtrPositionSensor);
             WriteParameter(db, dt, expID, sensor.SensorDelays[2], ParametersID.SecondZondPositionSensor);
         }
         WriteParameter(db, dt, expID, sensor.ComputerCalcLevel, ParametersID.LevelComputer);
         if (sensor.ComputerDelays != null)
         {
             WriteParameter(db, dt, expID, sensor.ComputerDelays[0], ParametersID.ZondPositionComputer);
             WriteParameter(db, dt, expID, sensor.ComputerDelays[1], ParametersID.OtrPositionComputer);
             WriteParameter(db, dt, expID, sensor.ComputerDelays[2], ParametersID.SecondZondPositionComputer);
         }
         if (sensor.ComputerAmplitudes != null)
         {
             WriteParameter(db, dt, expID, sensor.ComputerAmplitudes[0], ParametersID.FirstZondAmplitude);
             WriteParameter(db, dt, expID, sensor.ComputerAmplitudes[1], ParametersID.OtrAmplitude);
             WriteParameter(db, dt, expID, sensor.ComputerAmplitudes[2], ParametersID.SecondZondAmplitude);
         }
         if (sensor.TemperatureArray != null)
             WriteTemperatureHanger(db, dt, expID, sensor.TemperatureArray);
     }
     catch (Exception ex)
     {
         FileWorker.WriteEventFile(DateTime.Now, "DatabaseWorker", "WriteSensorStatistic", ex.Message);
     }
 }
 internal static void WriteSensorReflectogram(ADatabase db, DateTime dt, Sensor sensor, ABaseblock device, int experimentGroup, int count)
 {
     try
     {
         int expID = GetExperimentsID(db, experimentGroup, device.sysChannelsIDs[count]);
         WriteReflectogram(db, dt, sensor.Reflectogram, expID);
     }
     catch (Exception ex)
     {
         FileWorker.WriteEventFile(DateTime.Now, "DatabaseWorker", "WriteSensorReflectogram", ex.Message);
     }
 }