24-12-18
This commit is contained in:
@@ -33,30 +33,35 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// 转速[rpm]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("转速[rpm]")]
|
||||
public int Speed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排气压力[BarA]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("排气压力[BarA]")]
|
||||
public double ExPress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 吸气压力[BarA]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("吸气压力[BarA]")]
|
||||
public double InhPress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 吸气温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("吸气温度[℃]")]
|
||||
public double InhTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// COND1温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("COND1温度[℃]")]
|
||||
public double Cond1Temp { get; set; }
|
||||
@@ -81,42 +86,49 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// HV[V]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("HV[V]")]
|
||||
public double HV { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// HV[A]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("HV[A]")]
|
||||
public double HVCur { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// HV[W]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("HV[W]")]
|
||||
public double HVPw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// LV[V]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("LV[V]")]
|
||||
public double LV { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// LV[A]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("LV[A]")]
|
||||
public double LVCur { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 环境温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("环境温度[℃]")]
|
||||
public double EnvTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 环境湿度[%]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("环境湿度[%]")]
|
||||
public double EnvRH { get; set; }
|
||||
@@ -129,6 +141,7 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// OS2温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("OS2温度[℃]")]
|
||||
public double OS2Temp { get; set; }
|
||||
@@ -159,28 +172,80 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// 排气温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("排气温度[℃]")]
|
||||
public double ExTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 膨胀阀前压力[BarA]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("膨胀阀前压力[BarA]")]
|
||||
public double TxvFrPress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 膨胀阀前温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("膨胀阀前温度[℃]")]
|
||||
public double TxvFrTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 冷凝器进口温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("冷凝器进口温度[℃]")]
|
||||
public double CondInTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 冷凝器进口压力[BarA]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("冷凝器进口压力[BarA]")]
|
||||
public double CondInPress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// EVAP出口压力[BarA]
|
||||
/// </summary>
|
||||
[Name("EVAP出口压力[BarA]")]
|
||||
public double EVAPExpPress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水箱进水温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("水箱进水温度[℃]")]
|
||||
public double WaterTankInTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水加热温度H1[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("水加热温度H1[℃]")]
|
||||
public double WaterHeatTempH1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 压缩机表面温度1[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("压缩机表面温度1[℃]")]
|
||||
public double CapSurfTemp1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 压缩机表面温度2[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("压缩机表面温度2[℃]")]
|
||||
public double CapSurfTemp2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 压缩机表面温度3[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("压缩机表面温度3[℃]")]
|
||||
public double CapSurfTemp3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 腔内压力[BarA]
|
||||
/// </summary>
|
||||
@@ -213,12 +278,14 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// 通讯Cmp母线电流[A]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("通讯Cmp母线电流[A]")]
|
||||
public double ComCapBusCur { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通讯Cmp母线电压[V]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("通讯Cmp母线电压[V]")]
|
||||
public double ComCapBusVol { get; set; }
|
||||
@@ -231,18 +298,21 @@ namespace CapMachine.Wpf.Models
|
||||
|
||||
/// <summary>
|
||||
/// 通讯Cmp相电流[A]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("通讯Cmp相电流[A]")]
|
||||
public double ComCapPhCur { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通讯Cmp功率[W]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("通讯Cmp功率[W]")]
|
||||
public double ComCapPw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通讯Cmp芯片温度[℃]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("通讯Cmp芯片温度[℃]")]
|
||||
public double ComCapChipTemp { get; set; }
|
||||
@@ -283,6 +353,20 @@ namespace CapMachine.Wpf.Models
|
||||
[Name("通讯PTC模块温度[℃]")]
|
||||
public double ComPTCMdTemp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过冷度[K]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("过冷度[K]")]
|
||||
public double Subcooling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过热度[K]
|
||||
/// V
|
||||
/// </summary>
|
||||
[Name("过热度[K]")]
|
||||
public double Superheat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
|
||||
@@ -341,6 +341,7 @@ namespace CapMachine.Wpf.Services
|
||||
|
||||
//List<CsvRecordModel> models = Datas.Select(dict => ConvertToCsvRecordModel(dict)).ToList();
|
||||
|
||||
//转换到CSV的数据
|
||||
var models = ConvertToCsvRecordModel(recordChannelData.Data);
|
||||
|
||||
//数据库保存
|
||||
|
||||
@@ -313,7 +313,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW114",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 2,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -332,7 +332,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW116",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 0,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -370,7 +370,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW120",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 2,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -427,7 +427,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW126",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -446,7 +446,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW128",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -465,7 +465,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW130",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 3,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -484,7 +484,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW132",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -503,7 +503,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW134",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 3,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -522,7 +522,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW136",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 0,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -541,7 +541,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW138",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -560,7 +560,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW140",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -579,7 +579,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW142",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -598,7 +598,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW144",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -617,7 +617,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW146",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -636,7 +636,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW148",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 2,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -655,7 +655,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW150",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 2,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -674,7 +674,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW152",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 0,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -693,7 +693,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "VW154",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -712,7 +712,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
@@ -731,7 +731,7 @@ namespace CapMachine.Wpf.Services
|
||||
PVAddress = "",//地址信息
|
||||
SVAddress = "",
|
||||
MVAddress = "",
|
||||
IsMeter = true,
|
||||
IsMeter = false,
|
||||
Precision = 1,
|
||||
DecimalPoint = 1,
|
||||
Samp = 1,
|
||||
|
||||
Reference in New Issue
Block a user