..
This commit is contained in:
229
Cs_HMI/Project/ViewForm/fBms.Designer.cs
generated
229
Cs_HMI/Project/ViewForm/fBms.Designer.cs
generated
@@ -31,8 +31,15 @@
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.lbcvSt = new System.Windows.Forms.Label();
|
||||
this.panel11 = new System.Windows.Forms.Panel();
|
||||
this.lbtemp2 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.panel10 = new System.Windows.Forms.Panel();
|
||||
this.lbTemp1 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.panel9 = new System.Windows.Forms.Panel();
|
||||
this.cv8 = new System.Windows.Forms.Label();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
@@ -61,14 +68,11 @@
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.arLabel1 = new arCtl.arLabel();
|
||||
this.lbinfost = new System.Windows.Forms.Label();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.panel10 = new System.Windows.Forms.Panel();
|
||||
this.lbTemp1 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.panel11 = new System.Windows.Forms.Panel();
|
||||
this.lbtemp2 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.lbCycle = new System.Windows.Forms.Label();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.panel11.SuspendLayout();
|
||||
this.panel10.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.panel9.SuspendLayout();
|
||||
this.panel8.SuspendLayout();
|
||||
@@ -78,9 +82,6 @@
|
||||
this.panel4.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.panel10.SuspendLayout();
|
||||
this.panel11.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// timer1
|
||||
@@ -100,6 +101,100 @@
|
||||
this.panel1.Size = new System.Drawing.Size(187, 577);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.lbcvSt);
|
||||
this.groupBox2.Controls.Add(this.panel11);
|
||||
this.groupBox2.Controls.Add(this.panel10);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.ForeColor = System.Drawing.Color.White;
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 465);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(187, 112);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Temp";
|
||||
//
|
||||
// lbcvSt
|
||||
//
|
||||
this.lbcvSt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lbcvSt.AutoSize = true;
|
||||
this.lbcvSt.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbcvSt.ForeColor = System.Drawing.Color.White;
|
||||
this.lbcvSt.Location = new System.Drawing.Point(148, 82);
|
||||
this.lbcvSt.Name = "lbcvSt";
|
||||
this.lbcvSt.Size = new System.Drawing.Size(39, 27);
|
||||
this.lbcvSt.TabIndex = 8;
|
||||
this.lbcvSt.Text = "●";
|
||||
//
|
||||
// panel11
|
||||
//
|
||||
this.panel11.Controls.Add(this.lbtemp2);
|
||||
this.panel11.Controls.Add(this.label7);
|
||||
this.panel11.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel11.Location = new System.Drawing.Point(3, 57);
|
||||
this.panel11.Name = "panel11";
|
||||
this.panel11.Size = new System.Drawing.Size(181, 40);
|
||||
this.panel11.TabIndex = 10;
|
||||
//
|
||||
// lbtemp2
|
||||
//
|
||||
this.lbtemp2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lbtemp2.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbtemp2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.lbtemp2.Location = new System.Drawing.Point(47, 0);
|
||||
this.lbtemp2.Name = "lbtemp2";
|
||||
this.lbtemp2.Size = new System.Drawing.Size(134, 40);
|
||||
this.lbtemp2.TabIndex = 0;
|
||||
this.lbtemp2.Text = "--";
|
||||
this.lbtemp2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.label7.Font = new System.Drawing.Font("굴림", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.label7.Location = new System.Drawing.Point(0, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(47, 40);
|
||||
this.label7.TabIndex = 0;
|
||||
this.label7.Text = "#2";
|
||||
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// panel10
|
||||
//
|
||||
this.panel10.Controls.Add(this.lbTemp1);
|
||||
this.panel10.Controls.Add(this.label3);
|
||||
this.panel10.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel10.Location = new System.Drawing.Point(3, 17);
|
||||
this.panel10.Name = "panel10";
|
||||
this.panel10.Size = new System.Drawing.Size(181, 40);
|
||||
this.panel10.TabIndex = 9;
|
||||
//
|
||||
// lbTemp1
|
||||
//
|
||||
this.lbTemp1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lbTemp1.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbTemp1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.lbTemp1.Location = new System.Drawing.Point(47, 0);
|
||||
this.lbTemp1.Name = "lbTemp1";
|
||||
this.lbTemp1.Size = new System.Drawing.Size(134, 40);
|
||||
this.lbTemp1.TabIndex = 0;
|
||||
this.lbTemp1.Text = "--";
|
||||
this.lbTemp1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.label3.Font = new System.Drawing.Font("굴림", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.label3.Location = new System.Drawing.Point(0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(47, 40);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "#1";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.panel9);
|
||||
@@ -119,18 +214,6 @@
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Cell voltage";
|
||||
//
|
||||
// lbcvSt
|
||||
//
|
||||
this.lbcvSt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lbcvSt.AutoSize = true;
|
||||
this.lbcvSt.Font = new System.Drawing.Font("굴림", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbcvSt.ForeColor = System.Drawing.Color.White;
|
||||
this.lbcvSt.Location = new System.Drawing.Point(148, 82);
|
||||
this.lbcvSt.Name = "lbcvSt";
|
||||
this.lbcvSt.Size = new System.Drawing.Size(39, 27);
|
||||
this.lbcvSt.TabIndex = 8;
|
||||
this.lbcvSt.Text = "●";
|
||||
//
|
||||
// panel9
|
||||
//
|
||||
this.panel9.Controls.Add(this.cv8);
|
||||
@@ -484,93 +567,24 @@
|
||||
this.lbinfost.TabIndex = 2;
|
||||
this.lbinfost.Text = "●";
|
||||
//
|
||||
// groupBox2
|
||||
// lbCycle
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.lbcvSt);
|
||||
this.groupBox2.Controls.Add(this.panel11);
|
||||
this.groupBox2.Controls.Add(this.panel10);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.ForeColor = System.Drawing.Color.White;
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 465);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(187, 112);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Temp";
|
||||
//
|
||||
// panel10
|
||||
//
|
||||
this.panel10.Controls.Add(this.lbTemp1);
|
||||
this.panel10.Controls.Add(this.label3);
|
||||
this.panel10.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel10.Location = new System.Drawing.Point(3, 17);
|
||||
this.panel10.Name = "panel10";
|
||||
this.panel10.Size = new System.Drawing.Size(181, 40);
|
||||
this.panel10.TabIndex = 9;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.lbTemp1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lbTemp1.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbTemp1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.lbTemp1.Location = new System.Drawing.Point(47, 0);
|
||||
this.lbTemp1.Name = "label2";
|
||||
this.lbTemp1.Size = new System.Drawing.Size(134, 40);
|
||||
this.lbTemp1.TabIndex = 0;
|
||||
this.lbTemp1.Text = "--";
|
||||
this.lbTemp1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.label3.Font = new System.Drawing.Font("굴림", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.label3.Location = new System.Drawing.Point(0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(47, 40);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "#1";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// panel11
|
||||
//
|
||||
this.panel11.Controls.Add(this.lbtemp2);
|
||||
this.panel11.Controls.Add(this.label7);
|
||||
this.panel11.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel11.Location = new System.Drawing.Point(3, 57);
|
||||
this.panel11.Name = "panel11";
|
||||
this.panel11.Size = new System.Drawing.Size(181, 40);
|
||||
this.panel11.TabIndex = 10;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.lbtemp2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lbtemp2.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbtemp2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.lbtemp2.Location = new System.Drawing.Point(47, 0);
|
||||
this.lbtemp2.Name = "label5";
|
||||
this.lbtemp2.Size = new System.Drawing.Size(134, 40);
|
||||
this.lbtemp2.TabIndex = 0;
|
||||
this.lbtemp2.Text = "--";
|
||||
this.lbtemp2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.label7.Font = new System.Drawing.Font("굴림", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.label7.Location = new System.Drawing.Point(0, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(47, 40);
|
||||
this.label7.TabIndex = 0;
|
||||
this.label7.Text = "#2";
|
||||
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.lbCycle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lbCycle.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbCycle.ForeColor = System.Drawing.Color.SkyBlue;
|
||||
this.lbCycle.Location = new System.Drawing.Point(296, 8);
|
||||
this.lbCycle.Name = "lbCycle";
|
||||
this.lbCycle.Size = new System.Drawing.Size(749, 27);
|
||||
this.lbCycle.TabIndex = 3;
|
||||
this.lbCycle.Text = "Cycle(2)";
|
||||
this.lbCycle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
//
|
||||
// fBms
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
|
||||
this.ClientSize = new System.Drawing.Size(1056, 583);
|
||||
this.Controls.Add(this.lbCycle);
|
||||
this.Controls.Add(this.lbinfost);
|
||||
this.Controls.Add(this.arLabel1);
|
||||
this.Controls.Add(this.panel1);
|
||||
@@ -581,6 +595,10 @@
|
||||
this.Load += new System.EventHandler(this.fFlag_Load);
|
||||
this.VisibleChanged += new System.EventHandler(this.fAgv_VisibleChanged);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.panel11.ResumeLayout(false);
|
||||
this.panel10.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.panel9.ResumeLayout(false);
|
||||
this.panel8.ResumeLayout(false);
|
||||
@@ -590,10 +608,6 @@
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.panel10.ResumeLayout(false);
|
||||
this.panel11.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -639,5 +653,6 @@
|
||||
private System.Windows.Forms.Panel panel10;
|
||||
private System.Windows.Forms.Label lbTemp1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label lbCycle;
|
||||
}
|
||||
}
|
||||
@@ -63,18 +63,26 @@ namespace Project.ViewForm
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
timer1.Stop();
|
||||
this.arLabel1.Text = PUB.BMS.Current_Level.ToString("N1") + "%";
|
||||
this.arLabel1.Sign = $"{PUB.BMS.Current_Volt}v, {PUB.BMS.Charge_watt}w";// PUB.BMS.Current_Volt.ToString() + "v";
|
||||
this.cv1.Text = PUB.BMS.CellVoltage[0].ToString("N3") + "v";
|
||||
this.cv2.Text = PUB.BMS.CellVoltage[1].ToString("N3") + "v";
|
||||
this.cv3.Text = PUB.BMS.CellVoltage[2].ToString("N3") + "v";
|
||||
this.cv4.Text = PUB.BMS.CellVoltage[3].ToString("N3") + "v";
|
||||
this.cv5.Text = PUB.BMS.CellVoltage[4].ToString("N3") + "v";
|
||||
this.cv6.Text = PUB.BMS.CellVoltage[5].ToString("N3") + "v";
|
||||
this.cv7.Text = PUB.BMS.CellVoltage[6].ToString("N3") + "v";
|
||||
this.cv8.Text = PUB.BMS.CellVoltage[7].ToString("N3") + "v";
|
||||
this.lbTemp1.Text = PUB.BMS.Current_temp1.ToString() + "℃";
|
||||
this.lbtemp2.Text = PUB.BMS.Current_temp2.ToString() + "℃";
|
||||
var data = PUB.BMS.BMSInformation;
|
||||
var volt = PUB.BMS.BMSCellVoltage;
|
||||
if (PUB.BMS.IsOpen == false)
|
||||
this.lbCycle.Text = "통신이 열려있지 않습니다";
|
||||
else if (PUB.BMS.IsValid == false)
|
||||
this.lbCycle.Text = "데이터가 유효하지 않습니다";
|
||||
else
|
||||
this.lbCycle.Text = $"Cell Average:{volt.Average},Delta:{volt.Delta},Cycle({data.cycleCount})";
|
||||
this.arLabel1.Text = $"{data.rsoc}%";
|
||||
this.arLabel1.Sign = $"{data.packVoltage}v, {data.watt}w";// PUB.BMS.Current_Volt.ToString() + "v";
|
||||
this.cv1.Text = volt.Voltage[0].ToString("N3") + "v";
|
||||
this.cv2.Text = volt.Voltage[1].ToString("N3") + "v";
|
||||
this.cv3.Text = volt.Voltage[2].ToString("N3") + "v";
|
||||
this.cv4.Text = volt.Voltage[3].ToString("N3") + "v";
|
||||
this.cv5.Text = volt.Voltage[4].ToString("N3") + "v";
|
||||
this.cv6.Text = volt.Voltage[5].ToString("N3") + "v";
|
||||
this.cv7.Text = volt.Voltage[6].ToString("N3") + "v";
|
||||
this.cv8.Text = volt.Voltage[7].ToString("N3") + "v";
|
||||
this.lbTemp1.Text = data.ntcTemp[0].ToString() + "℃";
|
||||
this.lbtemp2.Text = data.ntcTemp[1].ToString() + "℃";
|
||||
timer1.Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user