Пожалуйста подскажите как реализовать это (прикреплено в картинке)
public static void dtest();
{
Room room = GetRoomByTitle(GetHouseByTitle("Дом Б"), "1");
MeasurePoint measure = SERVER.MeasurePoints.GetList().FirstOrDefault((MeasurePoint x) => x.Title == "ХВС");
var t = Tuple.Create(Lers.Data.DataParameter.V_in, Lers.Data.DeviceDataType.None);
measure.Refresh(MeasurePointInfoFlags.Equipment);
Lers.Models.Cell model_cell = new Lers.Models.Cell();
model_cell.DataType = Lers.Data.DeviceDataType.None;
model_cell.DriverCode = "In2";
model_cell.Name = "Имп. ввод 2";
model_cell.Id = measure.Id * 2;
Cell cell = Cell.FromModel(model_cell);
MeasurePointCellBinding cellBinding = new MeasurePointCellBinding(cell);
cellBinding.Unit = Lers.Data.Unit.CubicMeter;
cellBinding.PulseRatio = float.Parse("0,001");
MeasurePointDeviceBinding binding = measure.DeviceBinding;
binding.Cells.Add(t, cellBinding);
measure.SaveAsync();
}
При попытке сохранить изменения получаю ошибку:
Заранее спасибо!