added .csv export

This commit is contained in:
2025-09-18 23:44:17 +02:00
parent 94a7c0e3fa
commit 326e0d2d12
2 changed files with 249 additions and 205 deletions

View File

@@ -96,7 +96,7 @@ namespace HTOLHAST
this.label18 = new System.Windows.Forms.Label(); this.label18 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label();
this.btnClear = new System.Windows.Forms.Button(); this.btnClear = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button(); this.btnExport = new System.Windows.Forms.Button();
this.btnNextPosition = new System.Windows.Forms.Button(); this.btnNextPosition = new System.Windows.Forms.Button();
this.btnMeasure = new System.Windows.Forms.Button(); this.btnMeasure = new System.Windows.Forms.Button();
this.tbProject = new System.Windows.Forms.Label(); this.tbProject = new System.Windows.Forms.Label();
@@ -124,11 +124,11 @@ namespace HTOLHAST
this.tabControl1.Controls.Add(this.tabPagePSUSettings); this.tabControl1.Controls.Add(this.tabPagePSUSettings);
this.tabControl1.Controls.Add(this.tabPageHeader); this.tabControl1.Controls.Add(this.tabPageHeader);
this.tabControl1.Controls.Add(this.tabPageMeasurement); this.tabControl1.Controls.Add(this.tabPageMeasurement);
this.tabControl1.Location = new System.Drawing.Point(9, 10); this.tabControl1.Location = new System.Drawing.Point(12, 12);
this.tabControl1.Margin = new System.Windows.Forms.Padding(2); this.tabControl1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1186, 556); this.tabControl1.Size = new System.Drawing.Size(1581, 684);
this.tabControl1.TabIndex = 0; this.tabControl1.TabIndex = 0;
// //
// tabPageInstruments // tabPageInstruments
@@ -154,20 +154,21 @@ namespace HTOLHAST
this.tabPageInstruments.Controls.Add(this.pictureBox2); this.tabPageInstruments.Controls.Add(this.pictureBox2);
this.tabPageInstruments.Controls.Add(this.label1); this.tabPageInstruments.Controls.Add(this.label1);
this.tabPageInstruments.Controls.Add(this.pictureBox1); this.tabPageInstruments.Controls.Add(this.pictureBox1);
this.tabPageInstruments.Location = new System.Drawing.Point(4, 22); this.tabPageInstruments.Location = new System.Drawing.Point(4, 25);
this.tabPageInstruments.Margin = new System.Windows.Forms.Padding(2); this.tabPageInstruments.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPageInstruments.Name = "tabPageInstruments"; this.tabPageInstruments.Name = "tabPageInstruments";
this.tabPageInstruments.Padding = new System.Windows.Forms.Padding(2); this.tabPageInstruments.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPageInstruments.Size = new System.Drawing.Size(1178, 530); this.tabPageInstruments.Size = new System.Drawing.Size(1573, 655);
this.tabPageInstruments.TabIndex = 0; this.tabPageInstruments.TabIndex = 0;
this.tabPageInstruments.Text = "Instruments"; this.tabPageInstruments.Text = "Instruments";
this.tabPageInstruments.UseVisualStyleBackColor = true; this.tabPageInstruments.UseVisualStyleBackColor = true;
// //
// btnInitializeInstruments // btnInitializeInstruments
// //
this.btnInitializeInstruments.Location = new System.Drawing.Point(775, 438); this.btnInitializeInstruments.Location = new System.Drawing.Point(1033, 539);
this.btnInitializeInstruments.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnInitializeInstruments.Name = "btnInitializeInstruments"; this.btnInitializeInstruments.Name = "btnInitializeInstruments";
this.btnInitializeInstruments.Size = new System.Drawing.Size(117, 47); this.btnInitializeInstruments.Size = new System.Drawing.Size(156, 58);
this.btnInitializeInstruments.TabIndex = 23; this.btnInitializeInstruments.TabIndex = 23;
this.btnInitializeInstruments.Text = "Initialize Instruments"; this.btnInitializeInstruments.Text = "Initialize Instruments";
this.btnInitializeInstruments.UseVisualStyleBackColor = true; this.btnInitializeInstruments.UseVisualStyleBackColor = true;
@@ -176,10 +177,10 @@ namespace HTOLHAST
// cbPAMEnabled // cbPAMEnabled
// //
this.cbPAMEnabled.AutoSize = true; this.cbPAMEnabled.AutoSize = true;
this.cbPAMEnabled.Location = new System.Drawing.Point(618, 271); this.cbPAMEnabled.Location = new System.Drawing.Point(824, 334);
this.cbPAMEnabled.Margin = new System.Windows.Forms.Padding(2); this.cbPAMEnabled.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbPAMEnabled.Name = "cbPAMEnabled"; this.cbPAMEnabled.Name = "cbPAMEnabled";
this.cbPAMEnabled.Size = new System.Drawing.Size(68, 19); this.cbPAMEnabled.Size = new System.Drawing.Size(74, 21);
this.cbPAMEnabled.TabIndex = 22; this.cbPAMEnabled.TabIndex = 22;
this.cbPAMEnabled.Text = "Enable"; this.cbPAMEnabled.Text = "Enable";
this.cbPAMEnabled.UseVisualStyleBackColor = true; this.cbPAMEnabled.UseVisualStyleBackColor = true;
@@ -187,10 +188,10 @@ namespace HTOLHAST
// cbPSU2Enabled // cbPSU2Enabled
// //
this.cbPSU2Enabled.AutoSize = true; this.cbPSU2Enabled.AutoSize = true;
this.cbPSU2Enabled.Location = new System.Drawing.Point(262, 271); this.cbPSU2Enabled.Location = new System.Drawing.Point(349, 334);
this.cbPSU2Enabled.Margin = new System.Windows.Forms.Padding(2); this.cbPSU2Enabled.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbPSU2Enabled.Name = "cbPSU2Enabled"; this.cbPSU2Enabled.Name = "cbPSU2Enabled";
this.cbPSU2Enabled.Size = new System.Drawing.Size(68, 19); this.cbPSU2Enabled.Size = new System.Drawing.Size(74, 21);
this.cbPSU2Enabled.TabIndex = 21; this.cbPSU2Enabled.TabIndex = 21;
this.cbPSU2Enabled.Text = "Enable"; this.cbPSU2Enabled.Text = "Enable";
this.cbPSU2Enabled.UseVisualStyleBackColor = true; this.cbPSU2Enabled.UseVisualStyleBackColor = true;
@@ -198,10 +199,9 @@ namespace HTOLHAST
// label11 // label11
// //
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(772, 28); this.label11.Location = new System.Drawing.Point(1029, 34);
this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(100, 15); this.label11.Size = new System.Drawing.Size(113, 17);
this.label11.TabIndex = 18; this.label11.TabIndex = 18;
this.label11.Text = "CURRENT LIMIT"; this.label11.Text = "CURRENT LIMIT";
// //
@@ -216,187 +216,178 @@ namespace HTOLHAST
this.panel1.Controls.Add(this.textBox6); this.panel1.Controls.Add(this.textBox6);
this.panel1.Controls.Add(this.textBox5); this.panel1.Controls.Add(this.textBox5);
this.panel1.Controls.Add(this.label9); this.panel1.Controls.Add(this.label9);
this.panel1.Location = new System.Drawing.Point(774, 44); this.panel1.Location = new System.Drawing.Point(1032, 54);
this.panel1.Margin = new System.Windows.Forms.Padding(2); this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(348, 149); this.panel1.Size = new System.Drawing.Size(464, 183);
this.panel1.TabIndex = 17; this.panel1.TabIndex = 17;
// //
// tbPamMaxCurrent // tbPamMaxCurrent
// //
this.tbPamMaxCurrent.Location = new System.Drawing.Point(266, 63); this.tbPamMaxCurrent.Location = new System.Drawing.Point(355, 78);
this.tbPamMaxCurrent.Margin = new System.Windows.Forms.Padding(2); this.tbPamMaxCurrent.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbPamMaxCurrent.Name = "tbPamMaxCurrent"; this.tbPamMaxCurrent.Name = "tbPamMaxCurrent";
this.tbPamMaxCurrent.Size = new System.Drawing.Size(76, 20); this.tbPamMaxCurrent.Size = new System.Drawing.Size(100, 22);
this.tbPamMaxCurrent.TabIndex = 23; this.tbPamMaxCurrent.TabIndex = 23;
this.tbPamMaxCurrent.Text = "0.02"; this.tbPamMaxCurrent.Text = "0.02";
// //
// textBox8 // textBox8
// //
this.textBox8.Location = new System.Drawing.Point(266, 40); this.textBox8.Location = new System.Drawing.Point(355, 49);
this.textBox8.Margin = new System.Windows.Forms.Padding(2); this.textBox8.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox8.Name = "textBox8"; this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(76, 20); this.textBox8.Size = new System.Drawing.Size(100, 22);
this.textBox8.TabIndex = 22; this.textBox8.TabIndex = 22;
// //
// label13 // label13
// //
this.label13.AutoSize = true; this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(290, 15); this.label13.Location = new System.Drawing.Point(387, 18);
this.label13.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label13.Name = "label13"; this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(33, 15); this.label13.Size = new System.Drawing.Size(37, 17);
this.label13.TabIndex = 21; this.label13.TabIndex = 21;
this.label13.Text = "MAX"; this.label13.Text = "MAX";
// //
// label10 // label10
// //
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(194, 15); this.label10.Location = new System.Drawing.Point(259, 18);
this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(30, 15); this.label10.Size = new System.Drawing.Size(32, 17);
this.label10.TabIndex = 20; this.label10.TabIndex = 20;
this.label10.Text = "MIN"; this.label10.Text = "MIN";
// //
// label12 // label12
// //
this.label12.AutoSize = true; this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(2, 63); this.label12.Location = new System.Drawing.Point(3, 78);
this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label12.Name = "label12"; this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(150, 15); this.label12.Size = new System.Drawing.Size(172, 17);
this.label12.TabIndex = 19; this.label12.TabIndex = 19;
this.label12.Text = "PICOAM MAX CURRENT: "; this.label12.Text = "PICOAM MAX CURRENT: ";
// //
// button3 // button3
// //
this.button3.Location = new System.Drawing.Point(266, 110); this.button3.Location = new System.Drawing.Point(355, 135);
this.button3.Margin = new System.Windows.Forms.Padding(2); this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 28); this.button3.Size = new System.Drawing.Size(100, 34);
this.button3.TabIndex = 18; this.button3.TabIndex = 18;
this.button3.Text = "CONFIG"; this.button3.Text = "CONFIG";
this.button3.UseVisualStyleBackColor = true; this.button3.UseVisualStyleBackColor = true;
// //
// textBox6 // textBox6
// //
this.textBox6.Location = new System.Drawing.Point(170, 63); this.textBox6.Location = new System.Drawing.Point(227, 78);
this.textBox6.Margin = new System.Windows.Forms.Padding(2); this.textBox6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox6.Name = "textBox6"; this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(76, 20); this.textBox6.Size = new System.Drawing.Size(100, 22);
this.textBox6.TabIndex = 3; this.textBox6.TabIndex = 3;
// //
// textBox5 // textBox5
// //
this.textBox5.Location = new System.Drawing.Point(170, 40); this.textBox5.Location = new System.Drawing.Point(227, 49);
this.textBox5.Margin = new System.Windows.Forms.Padding(2); this.textBox5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox5.Name = "textBox5"; this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(76, 20); this.textBox5.Size = new System.Drawing.Size(100, 22);
this.textBox5.TabIndex = 2; this.textBox5.TabIndex = 2;
// //
// label9 // label9
// //
this.label9.AutoSize = true; this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(2, 40); this.label9.Location = new System.Drawing.Point(3, 49);
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label9.Name = "label9"; this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(185, 15); this.label9.Size = new System.Drawing.Size(217, 17);
this.label9.TabIndex = 0; this.label9.TabIndex = 0;
this.label9.Text = "DATALOGGER MAX CURRENT: "; this.label9.Text = "DATALOGGER MAX CURRENT: ";
// //
// tbResourceStringPAM // tbResourceStringPAM
// //
this.tbResourceStringPAM.Location = new System.Drawing.Point(490, 465); this.tbResourceStringPAM.Location = new System.Drawing.Point(653, 572);
this.tbResourceStringPAM.Margin = new System.Windows.Forms.Padding(2); this.tbResourceStringPAM.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbResourceStringPAM.Name = "tbResourceStringPAM"; this.tbResourceStringPAM.Name = "tbResourceStringPAM";
this.tbResourceStringPAM.Size = new System.Drawing.Size(184, 20); this.tbResourceStringPAM.Size = new System.Drawing.Size(244, 22);
this.tbResourceStringPAM.TabIndex = 15; this.tbResourceStringPAM.TabIndex = 15;
this.tbResourceStringPAM.Text = "ASRL3::INSTR"; this.tbResourceStringPAM.Text = "ASRL3::INSTR";
// //
// label8 // label8
// //
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(394, 465); this.label8.Location = new System.Drawing.Point(525, 572);
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(93, 15); this.label8.Size = new System.Drawing.Size(108, 17);
this.label8.TabIndex = 14; this.label8.TabIndex = 14;
this.label8.Text = "VISA ADDRESS"; this.label8.Text = "VISA ADDRESS";
// //
// tbResourceStringDAQ // tbResourceStringDAQ
// //
this.tbResourceStringDAQ.Location = new System.Drawing.Point(490, 216); this.tbResourceStringDAQ.Location = new System.Drawing.Point(653, 266);
this.tbResourceStringDAQ.Margin = new System.Windows.Forms.Padding(2); this.tbResourceStringDAQ.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbResourceStringDAQ.Name = "tbResourceStringDAQ"; this.tbResourceStringDAQ.Name = "tbResourceStringDAQ";
this.tbResourceStringDAQ.Size = new System.Drawing.Size(184, 20); this.tbResourceStringDAQ.Size = new System.Drawing.Size(244, 22);
this.tbResourceStringDAQ.TabIndex = 13; this.tbResourceStringDAQ.TabIndex = 13;
this.tbResourceStringDAQ.Text = "ASRL9::INSTR"; this.tbResourceStringDAQ.Text = "ASRL9::INSTR";
// //
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(394, 216); this.label7.Location = new System.Drawing.Point(525, 266);
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(93, 15); this.label7.Size = new System.Drawing.Size(108, 17);
this.label7.TabIndex = 12; this.label7.TabIndex = 12;
this.label7.Text = "VISA ADDRESS"; this.label7.Text = "VISA ADDRESS";
// //
// tbResourceStringPSU2 // tbResourceStringPSU2
// //
this.tbResourceStringPSU2.Location = new System.Drawing.Point(134, 465); this.tbResourceStringPSU2.Location = new System.Drawing.Point(179, 572);
this.tbResourceStringPSU2.Margin = new System.Windows.Forms.Padding(2); this.tbResourceStringPSU2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbResourceStringPSU2.Name = "tbResourceStringPSU2"; this.tbResourceStringPSU2.Name = "tbResourceStringPSU2";
this.tbResourceStringPSU2.Size = new System.Drawing.Size(184, 20); this.tbResourceStringPSU2.Size = new System.Drawing.Size(244, 22);
this.tbResourceStringPSU2.TabIndex = 11; this.tbResourceStringPSU2.TabIndex = 11;
// //
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(38, 465); this.label6.Location = new System.Drawing.Point(51, 572);
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(93, 15); this.label6.Size = new System.Drawing.Size(108, 17);
this.label6.TabIndex = 10; this.label6.TabIndex = 10;
this.label6.Text = "VISA ADDRESS"; this.label6.Text = "VISA ADDRESS";
// //
// tbResourceStringPSU1 // tbResourceStringPSU1
// //
this.tbResourceStringPSU1.Location = new System.Drawing.Point(134, 216); this.tbResourceStringPSU1.Location = new System.Drawing.Point(179, 266);
this.tbResourceStringPSU1.Margin = new System.Windows.Forms.Padding(2); this.tbResourceStringPSU1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tbResourceStringPSU1.Name = "tbResourceStringPSU1"; this.tbResourceStringPSU1.Name = "tbResourceStringPSU1";
this.tbResourceStringPSU1.Size = new System.Drawing.Size(184, 20); this.tbResourceStringPSU1.Size = new System.Drawing.Size(244, 22);
this.tbResourceStringPSU1.TabIndex = 9; this.tbResourceStringPSU1.TabIndex = 9;
this.tbResourceStringPSU1.Text = "ASRL4::INSTR"; this.tbResourceStringPSU1.Text = "ASRL4::INSTR";
// //
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(38, 216); this.label5.Location = new System.Drawing.Point(51, 266);
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(93, 15); this.label5.Size = new System.Drawing.Size(108, 17);
this.label5.TabIndex = 8; this.label5.TabIndex = 8;
this.label5.Text = "VISA ADDRESS"; this.label5.Text = "VISA ADDRESS";
// //
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(394, 276); this.label4.Location = new System.Drawing.Point(525, 340);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(96, 15); this.label4.Size = new System.Drawing.Size(108, 17);
this.label4.TabIndex = 7; this.label4.TabIndex = 7;
this.label4.Text = "PICOAMMETER"; this.label4.Text = "PICOAMMETER";
// //
// pictureBox4 // pictureBox4
// //
this.pictureBox4.Image = global::HTOLHAST.Properties.Resources.Keithley6485; this.pictureBox4.Image = global::HTOLHAST.Properties.Resources.Keithley6485;
this.pictureBox4.Location = new System.Drawing.Point(396, 292); this.pictureBox4.Location = new System.Drawing.Point(528, 359);
this.pictureBox4.Margin = new System.Windows.Forms.Padding(2); this.pictureBox4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(278, 170); this.pictureBox4.Size = new System.Drawing.Size(371, 209);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox4.TabIndex = 6; this.pictureBox4.TabIndex = 6;
this.pictureBox4.TabStop = false; this.pictureBox4.TabStop = false;
@@ -404,20 +395,19 @@ namespace HTOLHAST
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(394, 28); this.label3.Location = new System.Drawing.Point(525, 34);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(88, 15); this.label3.Size = new System.Drawing.Size(105, 17);
this.label3.TabIndex = 5; this.label3.TabIndex = 5;
this.label3.Text = "DATALOGGER"; this.label3.Text = "DATALOGGER";
// //
// pictureBox3 // pictureBox3
// //
this.pictureBox3.Image = global::HTOLHAST.Properties.Resources.Agilent34970A; this.pictureBox3.Image = global::HTOLHAST.Properties.Resources.Agilent34970A;
this.pictureBox3.Location = new System.Drawing.Point(396, 44); this.pictureBox3.Location = new System.Drawing.Point(528, 54);
this.pictureBox3.Margin = new System.Windows.Forms.Padding(2); this.pictureBox3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox3.Name = "pictureBox3"; this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(278, 170); this.pictureBox3.Size = new System.Drawing.Size(371, 209);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox3.TabIndex = 4; this.pictureBox3.TabIndex = 4;
this.pictureBox3.TabStop = false; this.pictureBox3.TabStop = false;
@@ -425,20 +415,19 @@ namespace HTOLHAST
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(38, 276); this.label2.Location = new System.Drawing.Point(51, 340);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(106, 15); this.label2.Size = new System.Drawing.Size(122, 17);
this.label2.TabIndex = 3; this.label2.TabIndex = 3;
this.label2.Text = "POWERSUPPLY2"; this.label2.Text = "POWERSUPPLY2";
// //
// pictureBox2 // pictureBox2
// //
this.pictureBox2.Image = global::HTOLHAST.Properties.Resources.HMP4040; this.pictureBox2.Image = global::HTOLHAST.Properties.Resources.HMP4040;
this.pictureBox2.Location = new System.Drawing.Point(40, 292); this.pictureBox2.Location = new System.Drawing.Point(53, 359);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(2); this.pictureBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(278, 170); this.pictureBox2.Size = new System.Drawing.Size(371, 209);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox2.TabIndex = 2; this.pictureBox2.TabIndex = 2;
this.pictureBox2.TabStop = false; this.pictureBox2.TabStop = false;
@@ -446,20 +435,19 @@ namespace HTOLHAST
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(38, 28); this.label1.Location = new System.Drawing.Point(51, 34);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(106, 15); this.label1.Size = new System.Drawing.Size(122, 17);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "POWERSUPPLY1"; this.label1.Text = "POWERSUPPLY1";
// //
// pictureBox1 // pictureBox1
// //
this.pictureBox1.Image = global::HTOLHAST.Properties.Resources.HMP4040; this.pictureBox1.Image = global::HTOLHAST.Properties.Resources.HMP4040;
this.pictureBox1.Location = new System.Drawing.Point(40, 44); this.pictureBox1.Location = new System.Drawing.Point(53, 54);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2); this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(278, 170); this.pictureBox1.Size = new System.Drawing.Size(371, 209);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0; this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
@@ -484,20 +472,21 @@ namespace HTOLHAST
this.tabPagePSUSettings.Controls.Add(this.dataGridView2); this.tabPagePSUSettings.Controls.Add(this.dataGridView2);
this.tabPagePSUSettings.Controls.Add(this.label14); this.tabPagePSUSettings.Controls.Add(this.label14);
this.tabPagePSUSettings.Controls.Add(this.dgvPowerSupplies); this.tabPagePSUSettings.Controls.Add(this.dgvPowerSupplies);
this.tabPagePSUSettings.Location = new System.Drawing.Point(4, 22); this.tabPagePSUSettings.Location = new System.Drawing.Point(4, 25);
this.tabPagePSUSettings.Margin = new System.Windows.Forms.Padding(2); this.tabPagePSUSettings.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPagePSUSettings.Name = "tabPagePSUSettings"; this.tabPagePSUSettings.Name = "tabPagePSUSettings";
this.tabPagePSUSettings.Padding = new System.Windows.Forms.Padding(2); this.tabPagePSUSettings.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPagePSUSettings.Size = new System.Drawing.Size(1178, 530); this.tabPagePSUSettings.Size = new System.Drawing.Size(1573, 655);
this.tabPagePSUSettings.TabIndex = 1; this.tabPagePSUSettings.TabIndex = 1;
this.tabPagePSUSettings.Text = "PSUSettings"; this.tabPagePSUSettings.Text = "PSUSettings";
this.tabPagePSUSettings.UseVisualStyleBackColor = true; this.tabPagePSUSettings.UseVisualStyleBackColor = true;
// //
// btnSendPsuSettings // btnSendPsuSettings
// //
this.btnSendPsuSettings.Location = new System.Drawing.Point(320, 434); this.btnSendPsuSettings.Location = new System.Drawing.Point(427, 534);
this.btnSendPsuSettings.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnSendPsuSettings.Name = "btnSendPsuSettings"; this.btnSendPsuSettings.Name = "btnSendPsuSettings";
this.btnSendPsuSettings.Size = new System.Drawing.Size(139, 48); this.btnSendPsuSettings.Size = new System.Drawing.Size(185, 59);
this.btnSendPsuSettings.TabIndex = 42; this.btnSendPsuSettings.TabIndex = 42;
this.btnSendPsuSettings.Text = "SEND"; this.btnSendPsuSettings.Text = "SEND";
this.btnSendPsuSettings.UseVisualStyleBackColor = true; this.btnSendPsuSettings.UseVisualStyleBackColor = true;
@@ -506,9 +495,10 @@ namespace HTOLHAST
// cbCH8 // cbCH8
// //
this.cbCH8.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH8.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH8.Location = new System.Drawing.Point(907, 102); this.cbCH8.Location = new System.Drawing.Point(1209, 126);
this.cbCH8.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH8.Name = "cbCH8"; this.cbCH8.Name = "cbCH8";
this.cbCH8.Size = new System.Drawing.Size(134, 68); this.cbCH8.Size = new System.Drawing.Size(179, 84);
this.cbCH8.TabIndex = 41; this.cbCH8.TabIndex = 41;
this.cbCH8.Text = "CH8"; this.cbCH8.Text = "CH8";
this.cbCH8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -517,9 +507,10 @@ namespace HTOLHAST
// cbCH7 // cbCH7
// //
this.cbCH7.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH7.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH7.Location = new System.Drawing.Point(766, 102); this.cbCH7.Location = new System.Drawing.Point(1021, 126);
this.cbCH7.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH7.Name = "cbCH7"; this.cbCH7.Name = "cbCH7";
this.cbCH7.Size = new System.Drawing.Size(134, 68); this.cbCH7.Size = new System.Drawing.Size(179, 84);
this.cbCH7.TabIndex = 40; this.cbCH7.TabIndex = 40;
this.cbCH7.Text = "CH7"; this.cbCH7.Text = "CH7";
this.cbCH7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -528,9 +519,10 @@ namespace HTOLHAST
// cbCH6 // cbCH6
// //
this.cbCH6.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH6.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH6.Location = new System.Drawing.Point(626, 102); this.cbCH6.Location = new System.Drawing.Point(835, 126);
this.cbCH6.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH6.Name = "cbCH6"; this.cbCH6.Name = "cbCH6";
this.cbCH6.Size = new System.Drawing.Size(134, 68); this.cbCH6.Size = new System.Drawing.Size(179, 84);
this.cbCH6.TabIndex = 39; this.cbCH6.TabIndex = 39;
this.cbCH6.Text = "CH6"; this.cbCH6.Text = "CH6";
this.cbCH6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -539,9 +531,10 @@ namespace HTOLHAST
// cbCH5 // cbCH5
// //
this.cbCH5.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH5.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH5.Location = new System.Drawing.Point(486, 102); this.cbCH5.Location = new System.Drawing.Point(648, 126);
this.cbCH5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH5.Name = "cbCH5"; this.cbCH5.Name = "cbCH5";
this.cbCH5.Size = new System.Drawing.Size(134, 68); this.cbCH5.Size = new System.Drawing.Size(179, 84);
this.cbCH5.TabIndex = 38; this.cbCH5.TabIndex = 38;
this.cbCH5.Text = "CH5"; this.cbCH5.Text = "CH5";
this.cbCH5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -550,9 +543,10 @@ namespace HTOLHAST
// cbCH4 // cbCH4
// //
this.cbCH4.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH4.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH4.Location = new System.Drawing.Point(907, 15); this.cbCH4.Location = new System.Drawing.Point(1209, 18);
this.cbCH4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH4.Name = "cbCH4"; this.cbCH4.Name = "cbCH4";
this.cbCH4.Size = new System.Drawing.Size(134, 68); this.cbCH4.Size = new System.Drawing.Size(179, 84);
this.cbCH4.TabIndex = 37; this.cbCH4.TabIndex = 37;
this.cbCH4.Text = "CH4"; this.cbCH4.Text = "CH4";
this.cbCH4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -561,9 +555,10 @@ namespace HTOLHAST
// cbCH3 // cbCH3
// //
this.cbCH3.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH3.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH3.Location = new System.Drawing.Point(766, 15); this.cbCH3.Location = new System.Drawing.Point(1021, 18);
this.cbCH3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH3.Name = "cbCH3"; this.cbCH3.Name = "cbCH3";
this.cbCH3.Size = new System.Drawing.Size(134, 68); this.cbCH3.Size = new System.Drawing.Size(179, 84);
this.cbCH3.TabIndex = 36; this.cbCH3.TabIndex = 36;
this.cbCH3.Text = "CH3"; this.cbCH3.Text = "CH3";
this.cbCH3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -572,9 +567,10 @@ namespace HTOLHAST
// cbCH2 // cbCH2
// //
this.cbCH2.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH2.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH2.Location = new System.Drawing.Point(626, 15); this.cbCH2.Location = new System.Drawing.Point(835, 18);
this.cbCH2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH2.Name = "cbCH2"; this.cbCH2.Name = "cbCH2";
this.cbCH2.Size = new System.Drawing.Size(134, 68); this.cbCH2.Size = new System.Drawing.Size(179, 84);
this.cbCH2.TabIndex = 35; this.cbCH2.TabIndex = 35;
this.cbCH2.Text = "CH2"; this.cbCH2.Text = "CH2";
this.cbCH2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -583,9 +579,10 @@ namespace HTOLHAST
// cbCH1 // cbCH1
// //
this.cbCH1.Appearance = System.Windows.Forms.Appearance.Button; this.cbCH1.Appearance = System.Windows.Forms.Appearance.Button;
this.cbCH1.Location = new System.Drawing.Point(486, 15); this.cbCH1.Location = new System.Drawing.Point(648, 18);
this.cbCH1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.cbCH1.Name = "cbCH1"; this.cbCH1.Name = "cbCH1";
this.cbCH1.Size = new System.Drawing.Size(134, 68); this.cbCH1.Size = new System.Drawing.Size(179, 84);
this.cbCH1.TabIndex = 34; this.cbCH1.TabIndex = 34;
this.cbCH1.Text = "CH1"; this.cbCH1.Text = "CH1";
this.cbCH1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbCH1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -593,40 +590,40 @@ namespace HTOLHAST
// //
// button12 // button12
// //
this.button12.Location = new System.Drawing.Point(1045, 384); this.button12.Location = new System.Drawing.Point(1393, 473);
this.button12.Margin = new System.Windows.Forms.Padding(2); this.button12.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button12.Name = "button12"; this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(49, 30); this.button12.Size = new System.Drawing.Size(65, 37);
this.button12.TabIndex = 33; this.button12.TabIndex = 33;
this.button12.Text = "Down"; this.button12.Text = "Down";
this.button12.UseVisualStyleBackColor = true; this.button12.UseVisualStyleBackColor = true;
// //
// button13 // button13
// //
this.button13.Location = new System.Drawing.Point(1045, 349); this.button13.Location = new System.Drawing.Point(1393, 430);
this.button13.Margin = new System.Windows.Forms.Padding(2); this.button13.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button13.Name = "button13"; this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(49, 30); this.button13.Size = new System.Drawing.Size(65, 37);
this.button13.TabIndex = 32; this.button13.TabIndex = 32;
this.button13.Text = "Up"; this.button13.Text = "Up";
this.button13.UseVisualStyleBackColor = true; this.button13.UseVisualStyleBackColor = true;
// //
// button11 // button11
// //
this.button11.Location = new System.Drawing.Point(719, 384); this.button11.Location = new System.Drawing.Point(959, 473);
this.button11.Margin = new System.Windows.Forms.Padding(2); this.button11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button11.Name = "button11"; this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(49, 30); this.button11.Size = new System.Drawing.Size(65, 37);
this.button11.TabIndex = 31; this.button11.TabIndex = 31;
this.button11.Text = "Down"; this.button11.Text = "Down";
this.button11.UseVisualStyleBackColor = true; this.button11.UseVisualStyleBackColor = true;
// //
// button10 // button10
// //
this.button10.Location = new System.Drawing.Point(719, 349); this.button10.Location = new System.Drawing.Point(959, 430);
this.button10.Margin = new System.Windows.Forms.Padding(2); this.button10.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button10.Name = "button10"; this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(49, 30); this.button10.Size = new System.Drawing.Size(65, 37);
this.button10.TabIndex = 30; this.button10.TabIndex = 30;
this.button10.Text = "Up"; this.button10.Text = "Up";
this.button10.UseVisualStyleBackColor = true; this.button10.UseVisualStyleBackColor = true;
@@ -634,10 +631,9 @@ namespace HTOLHAST
// label15 // label15
// //
this.label15.AutoSize = true; this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(809, 230); this.label15.Location = new System.Drawing.Point(1079, 283);
this.label15.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label15.Name = "label15"; this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(164, 15); this.label15.Size = new System.Drawing.Size(189, 17);
this.label15.TabIndex = 27; this.label15.TabIndex = 27;
this.label15.Text = "POWER-DOWN SEQUENCE"; this.label15.Text = "POWER-DOWN SEQUENCE";
// //
@@ -647,12 +643,12 @@ namespace HTOLHAST
this.dataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2}); this.dataGridViewTextBoxColumn2});
this.dataGridView3.Location = new System.Drawing.Point(812, 257); this.dataGridView3.Location = new System.Drawing.Point(1083, 316);
this.dataGridView3.Margin = new System.Windows.Forms.Padding(2); this.dataGridView3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dataGridView3.Name = "dataGridView3"; this.dataGridView3.Name = "dataGridView3";
this.dataGridView3.RowHeadersWidth = 51; this.dataGridView3.RowHeadersWidth = 51;
this.dataGridView3.RowTemplate.Height = 24; this.dataGridView3.RowTemplate.Height = 24;
this.dataGridView3.Size = new System.Drawing.Size(229, 157); this.dataGridView3.Size = new System.Drawing.Size(305, 193);
this.dataGridView3.TabIndex = 26; this.dataGridView3.TabIndex = 26;
// //
// dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1
@@ -675,12 +671,12 @@ namespace HTOLHAST
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Channel, this.Channel,
this.Delay}); this.Delay});
this.dataGridView2.Location = new System.Drawing.Point(486, 257); this.dataGridView2.Location = new System.Drawing.Point(648, 316);
this.dataGridView2.Margin = new System.Windows.Forms.Padding(2); this.dataGridView2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.RowHeadersWidth = 51; this.dataGridView2.RowHeadersWidth = 51;
this.dataGridView2.RowTemplate.Height = 24; this.dataGridView2.RowTemplate.Height = 24;
this.dataGridView2.Size = new System.Drawing.Size(229, 157); this.dataGridView2.Size = new System.Drawing.Size(305, 193);
this.dataGridView2.TabIndex = 25; this.dataGridView2.TabIndex = 25;
// //
// Channel // Channel
@@ -700,32 +696,31 @@ namespace HTOLHAST
// label14 // label14
// //
this.label14.AutoSize = true; this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(484, 230); this.label14.Location = new System.Drawing.Point(645, 283);
this.label14.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(143, 15); this.label14.Size = new System.Drawing.Size(164, 17);
this.label14.TabIndex = 24; this.label14.TabIndex = 24;
this.label14.Text = "POWER-UP SEQUENCE"; this.label14.Text = "POWER-UP SEQUENCE";
// //
// dgvPowerSupplies // dgvPowerSupplies
// //
this.dgvPowerSupplies.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPowerSupplies.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPowerSupplies.Location = new System.Drawing.Point(11, 15); this.dgvPowerSupplies.Location = new System.Drawing.Point(15, 18);
this.dgvPowerSupplies.Margin = new System.Windows.Forms.Padding(2); this.dgvPowerSupplies.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvPowerSupplies.Name = "dgvPowerSupplies"; this.dgvPowerSupplies.Name = "dgvPowerSupplies";
this.dgvPowerSupplies.RowHeadersWidth = 51; this.dgvPowerSupplies.RowHeadersWidth = 51;
this.dgvPowerSupplies.RowTemplate.Height = 24; this.dgvPowerSupplies.RowTemplate.Height = 24;
this.dgvPowerSupplies.Size = new System.Drawing.Size(448, 399); this.dgvPowerSupplies.Size = new System.Drawing.Size(597, 491);
this.dgvPowerSupplies.TabIndex = 0; this.dgvPowerSupplies.TabIndex = 0;
// //
// tabPageHeader // tabPageHeader
// //
this.tabPageHeader.Controls.Add(this.dgvHeaderSettings); this.tabPageHeader.Controls.Add(this.dgvHeaderSettings);
this.tabPageHeader.Location = new System.Drawing.Point(4, 22); this.tabPageHeader.Location = new System.Drawing.Point(4, 25);
this.tabPageHeader.Margin = new System.Windows.Forms.Padding(2); this.tabPageHeader.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPageHeader.Name = "tabPageHeader"; this.tabPageHeader.Name = "tabPageHeader";
this.tabPageHeader.Padding = new System.Windows.Forms.Padding(2); this.tabPageHeader.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPageHeader.Size = new System.Drawing.Size(1178, 530); this.tabPageHeader.Size = new System.Drawing.Size(1573, 655);
this.tabPageHeader.TabIndex = 3; this.tabPageHeader.TabIndex = 3;
this.tabPageHeader.Text = "Header"; this.tabPageHeader.Text = "Header";
this.tabPageHeader.UseVisualStyleBackColor = true; this.tabPageHeader.UseVisualStyleBackColor = true;
@@ -733,12 +728,12 @@ namespace HTOLHAST
// dgvHeaderSettings // dgvHeaderSettings
// //
this.dgvHeaderSettings.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvHeaderSettings.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvHeaderSettings.Location = new System.Drawing.Point(4, 5); this.dgvHeaderSettings.Location = new System.Drawing.Point(5, 6);
this.dgvHeaderSettings.Margin = new System.Windows.Forms.Padding(2); this.dgvHeaderSettings.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvHeaderSettings.Name = "dgvHeaderSettings"; this.dgvHeaderSettings.Name = "dgvHeaderSettings";
this.dgvHeaderSettings.RowHeadersWidth = 51; this.dgvHeaderSettings.RowHeadersWidth = 51;
this.dgvHeaderSettings.RowTemplate.Height = 24; this.dgvHeaderSettings.RowTemplate.Height = 24;
this.dgvHeaderSettings.Size = new System.Drawing.Size(558, 522); this.dgvHeaderSettings.Size = new System.Drawing.Size(744, 642);
this.dgvHeaderSettings.TabIndex = 1; this.dgvHeaderSettings.TabIndex = 1;
// //
// tabPageMeasurement // tabPageMeasurement
@@ -752,15 +747,15 @@ namespace HTOLHAST
this.tabPageMeasurement.Controls.Add(this.label18); this.tabPageMeasurement.Controls.Add(this.label18);
this.tabPageMeasurement.Controls.Add(this.label17); this.tabPageMeasurement.Controls.Add(this.label17);
this.tabPageMeasurement.Controls.Add(this.btnClear); this.tabPageMeasurement.Controls.Add(this.btnClear);
this.tabPageMeasurement.Controls.Add(this.button16); this.tabPageMeasurement.Controls.Add(this.btnExport);
this.tabPageMeasurement.Controls.Add(this.btnNextPosition); this.tabPageMeasurement.Controls.Add(this.btnNextPosition);
this.tabPageMeasurement.Controls.Add(this.btnMeasure); this.tabPageMeasurement.Controls.Add(this.btnMeasure);
this.tabPageMeasurement.Controls.Add(this.tbProject); this.tabPageMeasurement.Controls.Add(this.tbProject);
this.tabPageMeasurement.Controls.Add(this.dgvMeasurements); this.tabPageMeasurement.Controls.Add(this.dgvMeasurements);
this.tabPageMeasurement.Location = new System.Drawing.Point(4, 22); this.tabPageMeasurement.Location = new System.Drawing.Point(4, 25);
this.tabPageMeasurement.Margin = new System.Windows.Forms.Padding(2); this.tabPageMeasurement.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPageMeasurement.Name = "tabPageMeasurement"; this.tabPageMeasurement.Name = "tabPageMeasurement";
this.tabPageMeasurement.Size = new System.Drawing.Size(1178, 530); this.tabPageMeasurement.Size = new System.Drawing.Size(1573, 655);
this.tabPageMeasurement.TabIndex = 2; this.tabPageMeasurement.TabIndex = 2;
this.tabPageMeasurement.Text = "Measurement"; this.tabPageMeasurement.Text = "Measurement";
this.tabPageMeasurement.UseVisualStyleBackColor = true; this.tabPageMeasurement.UseVisualStyleBackColor = true;
@@ -768,38 +763,36 @@ namespace HTOLHAST
// tbStepDescription // tbStepDescription
// //
this.tbStepDescription.AutoSize = true; this.tbStepDescription.AutoSize = true;
this.tbStepDescription.Location = new System.Drawing.Point(13, 66); this.tbStepDescription.Location = new System.Drawing.Point(17, 81);
this.tbStepDescription.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.tbStepDescription.Name = "tbStepDescription"; this.tbStepDescription.Name = "tbStepDescription";
this.tbStepDescription.Size = new System.Drawing.Size(103, 15); this.tbStepDescription.Size = new System.Drawing.Size(120, 17);
this.tbStepDescription.TabIndex = 14; this.tbStepDescription.TabIndex = 14;
this.tbStepDescription.Text = "Step Description :"; this.tbStepDescription.Text = "Step Description :";
// //
// tbSubProjectDescription // tbSubProjectDescription
// //
this.tbSubProjectDescription.AutoSize = true; this.tbSubProjectDescription.AutoSize = true;
this.tbSubProjectDescription.Location = new System.Drawing.Point(13, 53); this.tbSubProjectDescription.Location = new System.Drawing.Point(17, 65);
this.tbSubProjectDescription.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.tbSubProjectDescription.Name = "tbSubProjectDescription"; this.tbSubProjectDescription.Name = "tbSubProjectDescription";
this.tbSubProjectDescription.Size = new System.Drawing.Size(138, 15); this.tbSubProjectDescription.Size = new System.Drawing.Size(160, 17);
this.tbSubProjectDescription.TabIndex = 13; this.tbSubProjectDescription.TabIndex = 13;
this.tbSubProjectDescription.Text = "SubProject Description :"; this.tbSubProjectDescription.Text = "SubProject Description :";
// //
// tbProjectDescription // tbProjectDescription
// //
this.tbProjectDescription.AutoSize = true; this.tbProjectDescription.AutoSize = true;
this.tbProjectDescription.Location = new System.Drawing.Point(13, 40); this.tbProjectDescription.Location = new System.Drawing.Point(17, 49);
this.tbProjectDescription.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.tbProjectDescription.Name = "tbProjectDescription"; this.tbProjectDescription.Name = "tbProjectDescription";
this.tbProjectDescription.Size = new System.Drawing.Size(116, 15); this.tbProjectDescription.Size = new System.Drawing.Size(135, 17);
this.tbProjectDescription.TabIndex = 12; this.tbProjectDescription.TabIndex = 12;
this.tbProjectDescription.Text = "Project Description :"; this.tbProjectDescription.Text = "Project Description :";
// //
// btnSelectProject // btnSelectProject
// //
this.btnSelectProject.Location = new System.Drawing.Point(173, 84); this.btnSelectProject.Location = new System.Drawing.Point(231, 103);
this.btnSelectProject.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnSelectProject.Name = "btnSelectProject"; this.btnSelectProject.Name = "btnSelectProject";
this.btnSelectProject.Size = new System.Drawing.Size(147, 45); this.btnSelectProject.Size = new System.Drawing.Size(196, 55);
this.btnSelectProject.TabIndex = 11; this.btnSelectProject.TabIndex = 11;
this.btnSelectProject.Text = "Select Project"; this.btnSelectProject.Text = "Select Project";
this.btnSelectProject.UseVisualStyleBackColor = true; this.btnSelectProject.UseVisualStyleBackColor = true;
@@ -807,64 +800,70 @@ namespace HTOLHAST
// //
// tbCurrentPosition // tbCurrentPosition
// //
this.tbCurrentPosition.Location = new System.Drawing.Point(1075, 3); this.tbCurrentPosition.Location = new System.Drawing.Point(1433, 4);
this.tbCurrentPosition.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbCurrentPosition.Name = "tbCurrentPosition"; this.tbCurrentPosition.Name = "tbCurrentPosition";
this.tbCurrentPosition.Size = new System.Drawing.Size(100, 20); this.tbCurrentPosition.Size = new System.Drawing.Size(132, 22);
this.tbCurrentPosition.TabIndex = 10; this.tbCurrentPosition.TabIndex = 10;
this.tbCurrentPosition.Text = "1"; this.tbCurrentPosition.Text = "1";
// //
// tbPositionIncrement // tbPositionIncrement
// //
this.tbPositionIncrement.Location = new System.Drawing.Point(857, 3); this.tbPositionIncrement.Location = new System.Drawing.Point(1143, 4);
this.tbPositionIncrement.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbPositionIncrement.Name = "tbPositionIncrement"; this.tbPositionIncrement.Name = "tbPositionIncrement";
this.tbPositionIncrement.Size = new System.Drawing.Size(100, 20); this.tbPositionIncrement.Size = new System.Drawing.Size(132, 22);
this.tbPositionIncrement.TabIndex = 9; this.tbPositionIncrement.TabIndex = 9;
this.tbPositionIncrement.Text = "1"; this.tbPositionIncrement.Text = "1";
// //
// label18 // label18
// //
this.label18.AutoSize = true; this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(744, 10); this.label18.Location = new System.Drawing.Point(992, 12);
this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label18.Name = "label18"; this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(109, 15); this.label18.Size = new System.Drawing.Size(124, 17);
this.label18.TabIndex = 8; this.label18.TabIndex = 8;
this.label18.Text = "Position Increment"; this.label18.Text = "Position Increment";
// //
// label17 // label17
// //
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(989, 10); this.label17.Location = new System.Drawing.Point(1319, 12);
this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(94, 15); this.label17.Size = new System.Drawing.Size(109, 17);
this.label17.TabIndex = 7; this.label17.TabIndex = 7;
this.label17.Text = "Current Position"; this.label17.Text = "Current Position";
// //
// btnClear // btnClear
// //
this.btnClear.Location = new System.Drawing.Point(689, 426); this.btnClear.Location = new System.Drawing.Point(919, 524);
this.btnClear.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnClear.Name = "btnClear"; this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(164, 79); this.btnClear.Size = new System.Drawing.Size(219, 97);
this.btnClear.TabIndex = 6; this.btnClear.TabIndex = 6;
this.btnClear.Text = "CLEAR"; this.btnClear.Text = "CLEAR";
this.btnClear.UseVisualStyleBackColor = true; this.btnClear.UseVisualStyleBackColor = true;
this.btnClear.Click += new System.EventHandler(this.btnClear_Click); this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
// //
// button16 // btnExport
// //
this.button16.Location = new System.Drawing.Point(992, 426); this.btnExport.Location = new System.Drawing.Point(1323, 524);
this.button16.Margin = new System.Windows.Forms.Padding(2); this.btnExport.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button16.Name = "button16"; this.btnExport.Name = "btnExport";
this.button16.Size = new System.Drawing.Size(166, 79); this.btnExport.Size = new System.Drawing.Size(221, 97);
this.button16.TabIndex = 5; this.btnExport.TabIndex = 5;
this.button16.Text = "SAVE"; this.btnExport.Text = "EXPORT";
this.button16.UseVisualStyleBackColor = true; this.btnExport.UseVisualStyleBackColor = true;
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
// //
// btnNextPosition // btnNextPosition
// //
this.btnNextPosition.Location = new System.Drawing.Point(516, 426); this.btnNextPosition.Location = new System.Drawing.Point(688, 524);
this.btnNextPosition.Margin = new System.Windows.Forms.Padding(2); this.btnNextPosition.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnNextPosition.Name = "btnNextPosition"; this.btnNextPosition.Name = "btnNextPosition";
this.btnNextPosition.Size = new System.Drawing.Size(166, 79); this.btnNextPosition.Size = new System.Drawing.Size(221, 97);
this.btnNextPosition.TabIndex = 4; this.btnNextPosition.TabIndex = 4;
this.btnNextPosition.Text = "NEXT POSITION"; this.btnNextPosition.Text = "NEXT POSITION";
this.btnNextPosition.UseVisualStyleBackColor = true; this.btnNextPosition.UseVisualStyleBackColor = true;
@@ -872,10 +871,10 @@ namespace HTOLHAST
// //
// btnMeasure // btnMeasure
// //
this.btnMeasure.Location = new System.Drawing.Point(346, 426); this.btnMeasure.Location = new System.Drawing.Point(461, 524);
this.btnMeasure.Margin = new System.Windows.Forms.Padding(2); this.btnMeasure.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnMeasure.Name = "btnMeasure"; this.btnMeasure.Name = "btnMeasure";
this.btnMeasure.Size = new System.Drawing.Size(166, 79); this.btnMeasure.Size = new System.Drawing.Size(221, 97);
this.btnMeasure.TabIndex = 3; this.btnMeasure.TabIndex = 3;
this.btnMeasure.Text = "MEASURE"; this.btnMeasure.Text = "MEASURE";
this.btnMeasure.UseVisualStyleBackColor = true; this.btnMeasure.UseVisualStyleBackColor = true;
@@ -884,31 +883,30 @@ namespace HTOLHAST
// tbProject // tbProject
// //
this.tbProject.AutoSize = true; this.tbProject.AutoSize = true;
this.tbProject.Location = new System.Drawing.Point(13, 27); this.tbProject.Location = new System.Drawing.Point(17, 33);
this.tbProject.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.tbProject.Name = "tbProject"; this.tbProject.Name = "tbProject";
this.tbProject.Size = new System.Drawing.Size(123, 15); this.tbProject.Size = new System.Drawing.Size(138, 17);
this.tbProject.TabIndex = 1; this.tbProject.TabIndex = 1;
this.tbProject.Text = "Project: Pxxxxx Sub x"; this.tbProject.Text = "Project: Pxxxxx Sub x";
// //
// dgvMeasurements // dgvMeasurements
// //
this.dgvMeasurements.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMeasurements.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvMeasurements.Location = new System.Drawing.Point(346, 27); this.dgvMeasurements.Location = new System.Drawing.Point(461, 33);
this.dgvMeasurements.Margin = new System.Windows.Forms.Padding(2); this.dgvMeasurements.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvMeasurements.Name = "dgvMeasurements"; this.dgvMeasurements.Name = "dgvMeasurements";
this.dgvMeasurements.RowHeadersWidth = 51; this.dgvMeasurements.RowHeadersWidth = 51;
this.dgvMeasurements.RowTemplate.Height = 24; this.dgvMeasurements.RowTemplate.Height = 24;
this.dgvMeasurements.Size = new System.Drawing.Size(812, 358); this.dgvMeasurements.Size = new System.Drawing.Size(1083, 441);
this.dgvMeasurements.TabIndex = 0; this.dgvMeasurements.TabIndex = 0;
// //
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1198, 569); this.ClientSize = new System.Drawing.Size(1597, 700);
this.Controls.Add(this.tabControl1); this.Controls.Add(this.tabControl1);
this.Margin = new System.Windows.Forms.Padding(2); this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "Form1"; this.Text = "Form1";
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
@@ -982,7 +980,7 @@ namespace HTOLHAST
private System.Windows.Forms.Button button11; private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button10; private System.Windows.Forms.Button button10;
private System.Windows.Forms.TabPage tabPageMeasurement; private System.Windows.Forms.TabPage tabPageMeasurement;
private System.Windows.Forms.Button button16; private System.Windows.Forms.Button btnExport;
private System.Windows.Forms.Button btnNextPosition; private System.Windows.Forms.Button btnNextPosition;
private System.Windows.Forms.Button btnMeasure; private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Label tbProject; private System.Windows.Forms.Label tbProject;

View File

@@ -10,6 +10,7 @@ using System.Windows.Forms;
using System.Threading; using System.Threading;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Maser.Palantir.Model; using Maser.Palantir.Model;
using System.IO;
namespace HTOLHAST namespace HTOLHAST
{ {
@@ -70,9 +71,6 @@ namespace HTOLHAST
List<HeaderSetting> headerSettings = new List<HeaderSetting>(); List<HeaderSetting> headerSettings = new List<HeaderSetting>();
DataTable dataTablePowersupplySettings = new DataTable(); DataTable dataTablePowersupplySettings = new DataTable();
List<PowerSupplySetting> powerSupplySettings = new List<PowerSupplySetting>(); List<PowerSupplySetting> powerSupplySettings = new List<PowerSupplySetting>();
@@ -103,11 +101,22 @@ namespace HTOLHAST
//InitializeDataTablePowerSupplySettings(); //InitializeDataTablePowerSupplySettings();
//InitializeDgvPowerSupplySettings(); //InitializeDgvPowerSupplySettings();
//KeithleyValidationOfMethods(); //KeithleyValidationOfMethods();
InitializeButtons();
InitDgvPowersupply(); InitDgvPowersupply();
InitDgvHeaderSetting(); InitDgvHeaderSetting();
InitDgvMeasurements(); InitDgvMeasurements();
InitSwitchMatrix(); InitSwitchMatrix();
InitializePowerupSequence(); InitializePowerupSequence();
}
#region INITIALIZATION
private void InitializeButtons()
{
btnClear.Enabled = false;
btnMeasure.Enabled = false;
btnNextPosition.Enabled = false;
btnSendPsuSettings.Enabled = false;
} }
private void InitDgvMeasurements() private void InitDgvMeasurements()
{ {
@@ -302,6 +311,9 @@ namespace HTOLHAST
} }
} }
#endregion
#region INSTRUMENTVALIDATION
public void HamegValidationOfMethods() public void HamegValidationOfMethods()
{ {
string resourceString = "ASRL4::INSTR"; // Replace with your instrument's resource string string resourceString = "ASRL4::INSTR"; // Replace with your instrument's resource string
@@ -370,6 +382,8 @@ namespace HTOLHAST
{ {
InitializeInstruments(); InitializeInstruments();
} }
#endregion
private void btnSelectProject_Click(object sender, EventArgs e) private void btnSelectProject_Click(object sender, EventArgs e)
{ {
// Create new Form and show in showdialog window. // Create new Form and show in showdialog window.
@@ -596,6 +610,25 @@ namespace HTOLHAST
PSU1.SetCurrent(powerSupplySetting.CurrentLimit, powerSupplySetting.Channel); PSU1.SetCurrent(powerSupplySetting.CurrentLimit, powerSupplySetting.Channel);
} }
} }
private void WriteBindingListToCsv(BindingList<Measurement> list, string filePath)
{
StringBuilder csvContent = new StringBuilder();
// Add header
csvContent.AppendLine("Timestamp,Position,Device,Description,Value,Unit");
// Add data
foreach (var measurement in list)
{
csvContent.AppendLine($"{measurement.Timestamp:yyyy-MM-dd},{measurement.Position},{measurement.Device},{measurement.Description},{measurement.Value},{measurement.Unit}");
}
// Write to file
File.WriteAllText(filePath, csvContent.ToString());
MessageBox.Show("Data exported successfully!", "Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void btnNextPosition_Click(object sender, EventArgs e) private void btnNextPosition_Click(object sender, EventArgs e)
{ {
CurrentPosition += PositionIncrement; CurrentPosition += PositionIncrement;
@@ -605,5 +638,18 @@ namespace HTOLHAST
{ {
measurements.Clear(); // Clear the list measurements.Clear(); // Clear the list
} }
private void btnExport_Click(object sender, EventArgs e)
{
using (SaveFileDialog saveFileDialog = new SaveFileDialog())
{
saveFileDialog.Filter = "CSV files (*.csv)|*.csv|All files (*.*)|*.*";
saveFileDialog.Title = "Save a CSV File";
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
WriteBindingListToCsv(measurements, saveFileDialog.FileName);
}
}
}
} }
} }