Browse Source

fei测试完毕

User 1 year ago
parent
commit
e5b0a7f82b

+ 2 - 2
Bin/x64/Debug/Config/ProData/HardwareConfig.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <XMLData PathName="HardwareConfig.xml" ID="1">
-  <Member RegName="SemControllerName" Value="OffLine" ImageInputSources="SE" />
-  <Member RegName="EDSName" Value="OffLine" />
+  <Member RegName="SemControllerName" Value="FEI" ImageInputSources="SE" />
+  <Member RegName="EDSName" Value="FEI" />
   <Member RegName="BrukerDllVersion" Version="Bruker.API.Esprit64.dll" />
   <Member RegName="FEIIP" Value="192.168.0.1" />
   <Member RegName="FEIPORT" Value="7520" />

+ 126 - 122
OTSSysMgrApp/ControllerSettingForm.Designer.cs

@@ -59,6 +59,10 @@
             this.lblResolution = new System.Windows.Forms.Label();
             this.tabImage2 = new System.Windows.Forms.TabPage();
             this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+            this.label5 = new System.Windows.Forms.Label();
+            this.Pic_height = new System.Windows.Forms.TextBox();
+            this.Pic_width = new System.Windows.Forms.TextBox();
+            this.label4 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
             this.tB_scanFieldSize100 = new System.Windows.Forms.TextBox();
             this.label1 = new System.Windows.Forms.Label();
@@ -72,10 +76,6 @@
             this.pictureBox4 = new System.Windows.Forms.PictureBox();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.Pic_height = new System.Windows.Forms.TextBox();
-            this.Pic_width = new System.Windows.Forms.TextBox();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label5 = new System.Windows.Forms.Label();
             this.tabSetting.SuspendLayout();
             this.tabXRay.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -105,7 +105,7 @@
             this.tabSetting.Margin = new System.Windows.Forms.Padding(2);
             this.tabSetting.Name = "tabSetting";
             this.tabSetting.SelectedIndex = 0;
-            this.tabSetting.Size = new System.Drawing.Size(833, 731);
+            this.tabSetting.Size = new System.Drawing.Size(833, 792);
             this.tabSetting.TabIndex = 2;
             // 
             // tabXRay
@@ -125,7 +125,7 @@
             this.tabXRay.Margin = new System.Windows.Forms.Padding(2);
             this.tabXRay.Name = "tabXRay";
             this.tabXRay.Padding = new System.Windows.Forms.Padding(2);
-            this.tabXRay.Size = new System.Drawing.Size(825, 705);
+            this.tabXRay.Size = new System.Drawing.Size(825, 766);
             this.tabXRay.TabIndex = 0;
             this.tabXRay.Text = "X-Ray设置";
             this.tabXRay.UseVisualStyleBackColor = true;
@@ -137,11 +137,11 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.groupBox1.BackColor = System.Drawing.Color.White;
             this.groupBox1.Controls.Add(this.chartXRay);
-            this.groupBox1.Location = new System.Drawing.Point(6, 57);
+            this.groupBox1.Location = new System.Drawing.Point(6, 62);
             this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
             this.groupBox1.Name = "groupBox1";
             this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBox1.Size = new System.Drawing.Size(812, 596);
+            this.groupBox1.Size = new System.Drawing.Size(812, 646);
             this.groupBox1.TabIndex = 16;
             this.groupBox1.TabStop = false;
             this.groupBox1.Text = "图像显示";
@@ -152,7 +152,7 @@
             chartArea1.Name = "ChartArea1";
             this.chartXRay.ChartAreas.Add(chartArea1);
             this.chartXRay.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.chartXRay.Location = new System.Drawing.Point(2, 16);
+            this.chartXRay.Location = new System.Drawing.Point(2, 15);
             this.chartXRay.Margin = new System.Windows.Forms.Padding(2);
             this.chartXRay.Name = "chartXRay";
             series1.ChartArea = "ChartArea1";
@@ -165,7 +165,7 @@
             series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int64;
             series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Int64;
             this.chartXRay.Series.Add(series1);
-            this.chartXRay.Size = new System.Drawing.Size(808, 578);
+            this.chartXRay.Size = new System.Drawing.Size(808, 629);
             this.chartXRay.SuppressExceptions = true;
             this.chartXRay.TabIndex = 2;
             this.chartXRay.Text = "chart2";
@@ -173,10 +173,10 @@
             // btnClearData
             // 
             this.btnClearData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnClearData.Location = new System.Drawing.Point(689, 9);
+            this.btnClearData.Location = new System.Drawing.Point(689, 10);
             this.btnClearData.Margin = new System.Windows.Forms.Padding(2);
             this.btnClearData.Name = "btnClearData";
-            this.btnClearData.Size = new System.Drawing.Size(39, 33);
+            this.btnClearData.Size = new System.Drawing.Size(39, 36);
             this.btnClearData.TabIndex = 5;
             this.btnClearData.Text = "清空";
             this.btnClearData.UseVisualStyleBackColor = true;
@@ -185,10 +185,10 @@
             // btnAreaRay
             // 
             this.btnAreaRay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnAreaRay.Location = new System.Drawing.Point(477, 9);
+            this.btnAreaRay.Location = new System.Drawing.Point(477, 10);
             this.btnAreaRay.Margin = new System.Windows.Forms.Padding(2);
             this.btnAreaRay.Name = "btnAreaRay";
-            this.btnAreaRay.Size = new System.Drawing.Size(67, 33);
+            this.btnAreaRay.Size = new System.Drawing.Size(67, 36);
             this.btnAreaRay.TabIndex = 4;
             this.btnAreaRay.Text = "面积采集";
             this.btnAreaRay.UseVisualStyleBackColor = true;
@@ -197,10 +197,10 @@
             // btnPointXRay
             // 
             this.btnPointXRay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnPointXRay.Location = new System.Drawing.Point(618, 9);
+            this.btnPointXRay.Location = new System.Drawing.Point(618, 10);
             this.btnPointXRay.Margin = new System.Windows.Forms.Padding(2);
             this.btnPointXRay.Name = "btnPointXRay";
-            this.btnPointXRay.Size = new System.Drawing.Size(67, 33);
+            this.btnPointXRay.Size = new System.Drawing.Size(67, 36);
             this.btnPointXRay.TabIndex = 3;
             this.btnPointXRay.Text = "多点采集";
             this.btnPointXRay.UseVisualStyleBackColor = true;
@@ -209,10 +209,10 @@
             // btnEanalysis
             // 
             this.btnEanalysis.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnEanalysis.Location = new System.Drawing.Point(757, 9);
+            this.btnEanalysis.Location = new System.Drawing.Point(757, 10);
             this.btnEanalysis.Margin = new System.Windows.Forms.Padding(2);
             this.btnEanalysis.Name = "btnEanalysis";
-            this.btnEanalysis.Size = new System.Drawing.Size(67, 33);
+            this.btnEanalysis.Size = new System.Drawing.Size(67, 36);
             this.btnEanalysis.TabIndex = 6;
             this.btnEanalysis.Text = "元素分析";
             this.btnEanalysis.UseVisualStyleBackColor = true;
@@ -221,10 +221,10 @@
             // btnDisplayXRay
             // 
             this.btnDisplayXRay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnDisplayXRay.Location = new System.Drawing.Point(548, 9);
+            this.btnDisplayXRay.Location = new System.Drawing.Point(548, 10);
             this.btnDisplayXRay.Margin = new System.Windows.Forms.Padding(2);
             this.btnDisplayXRay.Name = "btnDisplayXRay";
-            this.btnDisplayXRay.Size = new System.Drawing.Size(67, 33);
+            this.btnDisplayXRay.Size = new System.Drawing.Size(67, 36);
             this.btnDisplayXRay.TabIndex = 2;
             this.btnDisplayXRay.Text = "单点采集";
             this.btnDisplayXRay.UseVisualStyleBackColor = true;
@@ -233,20 +233,20 @@
             // lbXrayCount
             // 
             this.lbXrayCount.AutoSize = true;
-            this.lbXrayCount.Location = new System.Drawing.Point(260, 19);
+            this.lbXrayCount.Location = new System.Drawing.Point(260, 21);
             this.lbXrayCount.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.lbXrayCount.Name = "lbXrayCount";
-            this.lbXrayCount.Size = new System.Drawing.Size(59, 12);
+            this.lbXrayCount.Size = new System.Drawing.Size(58, 13);
             this.lbXrayCount.TabIndex = 13;
             this.lbXrayCount.Text = "DropCount";
             // 
             // btnCollectionTime
             // 
             this.btnCollectionTime.Enabled = false;
-            this.btnCollectionTime.Location = new System.Drawing.Point(167, 15);
+            this.btnCollectionTime.Location = new System.Drawing.Point(167, 16);
             this.btnCollectionTime.Margin = new System.Windows.Forms.Padding(2);
             this.btnCollectionTime.Name = "btnCollectionTime";
-            this.btnCollectionTime.Size = new System.Drawing.Size(40, 21);
+            this.btnCollectionTime.Size = new System.Drawing.Size(40, 23);
             this.btnCollectionTime.TabIndex = 8;
             this.btnCollectionTime.Text = "Test";
             this.btnCollectionTime.UseVisualStyleBackColor = true;
@@ -255,30 +255,30 @@
             // 
             // tbCollectionTime
             // 
-            this.tbCollectionTime.Location = new System.Drawing.Point(76, 16);
+            this.tbCollectionTime.Location = new System.Drawing.Point(76, 17);
             this.tbCollectionTime.Margin = new System.Windows.Forms.Padding(2);
             this.tbCollectionTime.Name = "tbCollectionTime";
-            this.tbCollectionTime.Size = new System.Drawing.Size(63, 21);
+            this.tbCollectionTime.Size = new System.Drawing.Size(63, 20);
             this.tbCollectionTime.TabIndex = 1;
             this.tbCollectionTime.Text = "120";
             // 
             // label2
             // 
             this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(143, 19);
+            this.label2.Location = new System.Drawing.Point(143, 21);
             this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(17, 12);
+            this.label2.Size = new System.Drawing.Size(20, 13);
             this.label2.TabIndex = 0;
             this.label2.Text = "ms";
             // 
             // lblCollectionTime
             // 
             this.lblCollectionTime.AutoSize = true;
-            this.lblCollectionTime.Location = new System.Drawing.Point(1, 19);
+            this.lblCollectionTime.Location = new System.Drawing.Point(1, 21);
             this.lblCollectionTime.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.lblCollectionTime.Name = "lblCollectionTime";
-            this.lblCollectionTime.Size = new System.Drawing.Size(53, 12);
+            this.lblCollectionTime.Size = new System.Drawing.Size(55, 13);
             this.lblCollectionTime.TabIndex = 0;
             this.lblCollectionTime.Text = "采集时间";
             // 
@@ -296,7 +296,7 @@
             this.tabImage.Margin = new System.Windows.Forms.Padding(2);
             this.tabImage.Name = "tabImage";
             this.tabImage.Padding = new System.Windows.Forms.Padding(2);
-            this.tabImage.Size = new System.Drawing.Size(825, 705);
+            this.tabImage.Size = new System.Drawing.Size(825, 766);
             this.tabImage.TabIndex = 1;
             this.tabImage.Text = "BSE设置";
             this.tabImage.UseVisualStyleBackColor = true;
@@ -313,10 +313,10 @@
             "64",
             "128",
             "256"});
-            this.ddlDwellTime.Location = new System.Drawing.Point(266, 16);
+            this.ddlDwellTime.Location = new System.Drawing.Point(266, 17);
             this.ddlDwellTime.Margin = new System.Windows.Forms.Padding(2);
             this.ddlDwellTime.Name = "ddlDwellTime";
-            this.ddlDwellTime.Size = new System.Drawing.Size(82, 20);
+            this.ddlDwellTime.Size = new System.Drawing.Size(82, 21);
             this.ddlDwellTime.TabIndex = 3;
             // 
             // groupBox2
@@ -327,11 +327,11 @@
             this.groupBox2.BackColor = System.Drawing.Color.White;
             this.groupBox2.Controls.Add(this.panel1);
             this.groupBox2.Controls.Add(this.btnClear);
-            this.groupBox2.Location = new System.Drawing.Point(6, 45);
+            this.groupBox2.Location = new System.Drawing.Point(6, 49);
             this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
             this.groupBox2.Name = "groupBox2";
             this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBox2.Size = new System.Drawing.Size(815, 611);
+            this.groupBox2.Size = new System.Drawing.Size(815, 662);
             this.groupBox2.TabIndex = 13;
             this.groupBox2.TabStop = false;
             this.groupBox2.Text = "图像显示";
@@ -341,10 +341,10 @@
             this.panel1.AutoScroll = true;
             this.panel1.Controls.Add(this.pbImage);
             this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.panel1.Location = new System.Drawing.Point(2, 16);
+            this.panel1.Location = new System.Drawing.Point(2, 15);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(811, 593);
+            this.panel1.Size = new System.Drawing.Size(811, 645);
             this.panel1.TabIndex = 2;
             // 
             // pbImage
@@ -354,7 +354,7 @@
             this.pbImage.Location = new System.Drawing.Point(0, 0);
             this.pbImage.Margin = new System.Windows.Forms.Padding(2);
             this.pbImage.Name = "pbImage";
-            this.pbImage.Size = new System.Drawing.Size(811, 593);
+            this.pbImage.Size = new System.Drawing.Size(811, 645);
             this.pbImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pbImage.TabIndex = 0;
             this.pbImage.TabStop = false;
@@ -362,10 +362,10 @@
             // btnClear
             // 
             this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnClear.Location = new System.Drawing.Point(743, 77);
+            this.btnClear.Location = new System.Drawing.Point(743, 83);
             this.btnClear.Margin = new System.Windows.Forms.Padding(2);
             this.btnClear.Name = "btnClear";
-            this.btnClear.Size = new System.Drawing.Size(67, 50);
+            this.btnClear.Size = new System.Drawing.Size(67, 54);
             this.btnClear.TabIndex = 1;
             this.btnClear.Text = "Clear";
             this.btnClear.UseVisualStyleBackColor = true;
@@ -375,10 +375,10 @@
             // btnSaveImage
             // 
             this.btnSaveImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnSaveImage.Location = new System.Drawing.Point(551, 8);
+            this.btnSaveImage.Location = new System.Drawing.Point(551, 9);
             this.btnSaveImage.Margin = new System.Windows.Forms.Padding(2);
             this.btnSaveImage.Name = "btnSaveImage";
-            this.btnSaveImage.Size = new System.Drawing.Size(67, 33);
+            this.btnSaveImage.Size = new System.Drawing.Size(67, 36);
             this.btnSaveImage.TabIndex = 4;
             this.btnSaveImage.Text = "保存图片";
             this.btnSaveImage.UseVisualStyleBackColor = true;
@@ -388,10 +388,10 @@
             // btnDisplay
             // 
             this.btnDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnDisplay.Location = new System.Drawing.Point(757, 8);
+            this.btnDisplay.Location = new System.Drawing.Point(757, 9);
             this.btnDisplay.Margin = new System.Windows.Forms.Padding(2);
             this.btnDisplay.Name = "btnDisplay";
-            this.btnDisplay.Size = new System.Drawing.Size(67, 33);
+            this.btnDisplay.Size = new System.Drawing.Size(67, 36);
             this.btnDisplay.TabIndex = 5;
             this.btnDisplay.Text = "图像采集";
             this.btnDisplay.UseVisualStyleBackColor = true;
@@ -399,39 +399,39 @@
             // 
             // tbRHeight
             // 
-            this.tbRHeight.Location = new System.Drawing.Point(119, 15);
+            this.tbRHeight.Location = new System.Drawing.Point(119, 16);
             this.tbRHeight.Margin = new System.Windows.Forms.Padding(2);
             this.tbRHeight.Name = "tbRHeight";
-            this.tbRHeight.Size = new System.Drawing.Size(48, 21);
+            this.tbRHeight.Size = new System.Drawing.Size(48, 20);
             this.tbRHeight.TabIndex = 2;
             this.tbRHeight.Text = "768";
             // 
             // tbRWidth
             // 
-            this.tbRWidth.Location = new System.Drawing.Point(66, 15);
+            this.tbRWidth.Location = new System.Drawing.Point(66, 16);
             this.tbRWidth.Margin = new System.Windows.Forms.Padding(2);
             this.tbRWidth.Name = "tbRWidth";
-            this.tbRWidth.Size = new System.Drawing.Size(48, 21);
+            this.tbRWidth.Size = new System.Drawing.Size(48, 20);
             this.tbRWidth.TabIndex = 1;
             this.tbRWidth.Text = "1024";
             // 
             // lblDwellTime
             // 
             this.lblDwellTime.AutoSize = true;
-            this.lblDwellTime.Location = new System.Drawing.Point(189, 19);
+            this.lblDwellTime.Location = new System.Drawing.Point(189, 21);
             this.lblDwellTime.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.lblDwellTime.Name = "lblDwellTime";
-            this.lblDwellTime.Size = new System.Drawing.Size(53, 12);
+            this.lblDwellTime.Size = new System.Drawing.Size(55, 13);
             this.lblDwellTime.TabIndex = 10;
             this.lblDwellTime.Text = "采集时间";
             // 
             // lblResolution
             // 
             this.lblResolution.AutoSize = true;
-            this.lblResolution.Location = new System.Drawing.Point(-3, 19);
+            this.lblResolution.Location = new System.Drawing.Point(-3, 21);
             this.lblResolution.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.lblResolution.Name = "lblResolution";
-            this.lblResolution.Size = new System.Drawing.Size(41, 12);
+            this.lblResolution.Size = new System.Drawing.Size(43, 13);
             this.lblResolution.TabIndex = 10;
             this.lblResolution.Text = "分辨率";
             // 
@@ -441,14 +441,14 @@
             this.tabImage2.Location = new System.Drawing.Point(4, 22);
             this.tabImage2.Name = "tabImage2";
             this.tabImage2.Padding = new System.Windows.Forms.Padding(3);
-            this.tabImage2.Size = new System.Drawing.Size(825, 705);
+            this.tabImage2.Size = new System.Drawing.Size(825, 766);
             this.tabImage2.TabIndex = 2;
             this.tabImage2.Text = "BSE设置2";
             this.tabImage2.UseVisualStyleBackColor = true;
             // 
             // splitContainer1
             // 
-            this.splitContainer1.Location = new System.Drawing.Point(7, 7);
+            this.splitContainer1.Location = new System.Drawing.Point(7, 8);
             this.splitContainer1.Name = "splitContainer1";
             this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
             // 
@@ -474,41 +474,80 @@
             this.splitContainer1.Panel2.Controls.Add(this.pictureBox4);
             this.splitContainer1.Panel2.Controls.Add(this.pictureBox2);
             this.splitContainer1.Panel2.Controls.Add(this.pictureBox1);
-            this.splitContainer1.Size = new System.Drawing.Size(813, 695);
-            this.splitContainer1.SplitterDistance = 85;
+            this.splitContainer1.Size = new System.Drawing.Size(813, 753);
+            this.splitContainer1.SplitterDistance = 92;
             this.splitContainer1.TabIndex = 2;
             // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(121, 52);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(11, 13);
+            this.label5.TabIndex = 14;
+            this.label5.Text = "*";
+            // 
+            // Pic_height
+            // 
+            this.Pic_height.Location = new System.Drawing.Point(137, 48);
+            this.Pic_height.Margin = new System.Windows.Forms.Padding(2);
+            this.Pic_height.Name = "Pic_height";
+            this.Pic_height.Size = new System.Drawing.Size(48, 20);
+            this.Pic_height.TabIndex = 12;
+            this.Pic_height.Text = "1024";
+            this.Pic_height.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            // 
+            // Pic_width
+            // 
+            this.Pic_width.Location = new System.Drawing.Point(68, 48);
+            this.Pic_width.Margin = new System.Windows.Forms.Padding(2);
+            this.Pic_width.Name = "Pic_width";
+            this.Pic_width.Size = new System.Drawing.Size(48, 20);
+            this.Pic_width.TabIndex = 11;
+            this.Pic_width.Text = "1536";
+            this.Pic_width.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(7, 52);
+            this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(46, 13);
+            this.label4.TabIndex = 13;
+            this.label4.Text = "分辨率:";
+            // 
             // label3
             // 
             this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(533, 11);
+            this.label3.Location = new System.Drawing.Point(533, 12);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(29, 12);
+            this.label3.Size = new System.Drawing.Size(31, 13);
             this.label3.TabIndex = 8;
             this.label3.Text = "毫米";
             // 
             // tB_scanFieldSize100
             // 
-            this.tB_scanFieldSize100.Location = new System.Drawing.Point(427, 7);
+            this.tB_scanFieldSize100.Location = new System.Drawing.Point(427, 8);
             this.tB_scanFieldSize100.Name = "tB_scanFieldSize100";
-            this.tB_scanFieldSize100.Size = new System.Drawing.Size(100, 21);
+            this.tB_scanFieldSize100.Size = new System.Drawing.Size(100, 20);
             this.tB_scanFieldSize100.TabIndex = 7;
             this.tB_scanFieldSize100.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // label1
             // 
             this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(327, 11);
+            this.label1.Location = new System.Drawing.Point(327, 12);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(107, 12);
+            this.label1.Size = new System.Drawing.Size(103, 13);
             this.label1.TabIndex = 6;
             this.label1.Text = "100倍下屏幕宽度:";
             // 
             // btn_confirm
             // 
-            this.btn_confirm.Location = new System.Drawing.Point(730, 11);
+            this.btn_confirm.Location = new System.Drawing.Point(730, 12);
             this.btn_confirm.Name = "btn_confirm";
-            this.btn_confirm.Size = new System.Drawing.Size(75, 60);
+            this.btn_confirm.Size = new System.Drawing.Size(75, 65);
             this.btn_confirm.TabIndex = 5;
             this.btn_confirm.Text = "上传参数";
             this.btn_confirm.UseVisualStyleBackColor = true;
@@ -517,42 +556,42 @@
             // cb_Ydirection
             // 
             this.cb_Ydirection.FormattingEnabled = true;
-            this.cb_Ydirection.Location = new System.Drawing.Point(235, 7);
+            this.cb_Ydirection.Location = new System.Drawing.Point(235, 8);
             this.cb_Ydirection.Name = "cb_Ydirection";
-            this.cb_Ydirection.Size = new System.Drawing.Size(86, 20);
+            this.cb_Ydirection.Size = new System.Drawing.Size(86, 21);
             this.cb_Ydirection.TabIndex = 4;
             // 
             // label_y
             // 
             this.label_y.AutoSize = true;
-            this.label_y.Location = new System.Drawing.Point(169, 11);
+            this.label_y.Location = new System.Drawing.Point(169, 12);
             this.label_y.Name = "label_y";
-            this.label_y.Size = new System.Drawing.Size(71, 12);
+            this.label_y.Size = new System.Drawing.Size(66, 13);
             this.label_y.TabIndex = 3;
             this.label_y.Text = "y轴正方向:";
             // 
             // cb_Xdirection
             // 
             this.cb_Xdirection.FormattingEnabled = true;
-            this.cb_Xdirection.Location = new System.Drawing.Point(68, 8);
+            this.cb_Xdirection.Location = new System.Drawing.Point(68, 9);
             this.cb_Xdirection.Name = "cb_Xdirection";
-            this.cb_Xdirection.Size = new System.Drawing.Size(86, 20);
+            this.cb_Xdirection.Size = new System.Drawing.Size(86, 21);
             this.cb_Xdirection.TabIndex = 2;
             // 
             // label_x
             // 
             this.label_x.AutoSize = true;
-            this.label_x.Location = new System.Drawing.Point(3, 11);
+            this.label_x.Location = new System.Drawing.Point(3, 12);
             this.label_x.Name = "label_x";
-            this.label_x.Size = new System.Drawing.Size(71, 12);
+            this.label_x.Size = new System.Drawing.Size(66, 13);
             this.label_x.TabIndex = 1;
             this.label_x.Text = "x轴正方向:";
             // 
             // bn_continuousshot
             // 
-            this.bn_continuousshot.Location = new System.Drawing.Point(649, 11);
+            this.bn_continuousshot.Location = new System.Drawing.Point(649, 12);
             this.bn_continuousshot.Name = "bn_continuousshot";
-            this.bn_continuousshot.Size = new System.Drawing.Size(75, 61);
+            this.bn_continuousshot.Size = new System.Drawing.Size(75, 66);
             this.bn_continuousshot.TabIndex = 0;
             this.bn_continuousshot.Text = "连拍";
             this.bn_continuousshot.UseVisualStyleBackColor = true;
@@ -561,10 +600,11 @@
             // pictureBox3
             // 
             this.pictureBox3.BackColor = System.Drawing.Color.White;
-            this.pictureBox3.Location = new System.Drawing.Point(405, 305);
+            this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.pictureBox3.Location = new System.Drawing.Point(405, 330);
             this.pictureBox3.Margin = new System.Windows.Forms.Padding(2);
             this.pictureBox3.Name = "pictureBox3";
-            this.pictureBox3.Size = new System.Drawing.Size(400, 300);
+            this.pictureBox3.Size = new System.Drawing.Size(400, 325);
             this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox3.TabIndex = 4;
             this.pictureBox3.TabStop = false;
@@ -572,10 +612,11 @@
             // pictureBox4
             // 
             this.pictureBox4.BackColor = System.Drawing.Color.White;
-            this.pictureBox4.Location = new System.Drawing.Point(5, 305);
+            this.pictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.pictureBox4.Location = new System.Drawing.Point(5, 330);
             this.pictureBox4.Margin = new System.Windows.Forms.Padding(2);
             this.pictureBox4.Name = "pictureBox4";
-            this.pictureBox4.Size = new System.Drawing.Size(400, 300);
+            this.pictureBox4.Size = new System.Drawing.Size(400, 325);
             this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox4.TabIndex = 3;
             this.pictureBox4.TabStop = false;
@@ -583,10 +624,11 @@
             // pictureBox2
             // 
             this.pictureBox2.BackColor = System.Drawing.Color.White;
+            this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.pictureBox2.Location = new System.Drawing.Point(405, 5);
             this.pictureBox2.Margin = new System.Windows.Forms.Padding(2);
             this.pictureBox2.Name = "pictureBox2";
-            this.pictureBox2.Size = new System.Drawing.Size(400, 300);
+            this.pictureBox2.Size = new System.Drawing.Size(400, 325);
             this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox2.TabIndex = 2;
             this.pictureBox2.TabStop = false;
@@ -594,63 +636,25 @@
             // pictureBox1
             // 
             this.pictureBox1.BackColor = System.Drawing.Color.White;
+            this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.pictureBox1.Location = new System.Drawing.Point(5, 5);
             this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
             this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(400, 300);
+            this.pictureBox1.Size = new System.Drawing.Size(400, 325);
             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox1.TabIndex = 1;
             this.pictureBox1.TabStop = false;
             // 
-            // Pic_height
-            // 
-            this.Pic_height.Location = new System.Drawing.Point(137, 44);
-            this.Pic_height.Margin = new System.Windows.Forms.Padding(2);
-            this.Pic_height.Name = "Pic_height";
-            this.Pic_height.Size = new System.Drawing.Size(48, 21);
-            this.Pic_height.TabIndex = 12;
-            this.Pic_height.Text = "768";
-            this.Pic_height.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
-            // Pic_width
-            // 
-            this.Pic_width.Location = new System.Drawing.Point(68, 44);
-            this.Pic_width.Margin = new System.Windows.Forms.Padding(2);
-            this.Pic_width.Name = "Pic_width";
-            this.Pic_width.Size = new System.Drawing.Size(48, 21);
-            this.Pic_width.TabIndex = 11;
-            this.Pic_width.Text = "1024";
-            this.Pic_width.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Location = new System.Drawing.Point(7, 48);
-            this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(47, 12);
-            this.label4.TabIndex = 13;
-            this.label4.Text = "分辨率:";
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(121, 48);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(11, 12);
-            this.label5.TabIndex = 14;
-            this.label5.Text = "*";
-            // 
             // ControllerSettingForm
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
-            this.ClientSize = new System.Drawing.Size(833, 731);
+            this.ClientSize = new System.Drawing.Size(833, 792);
             this.Controls.Add(this.tabSetting);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Margin = new System.Windows.Forms.Padding(2);
-            this.MinimumSize = new System.Drawing.Size(639, 403);
+            this.MinimumSize = new System.Drawing.Size(639, 433);
             this.Name = "ControllerSettingForm";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "BSEAndXrayTest";

+ 25 - 10
OTSSysMgrApp/ControllerSettingForm.cs

@@ -1163,12 +1163,12 @@ namespace OTSSysMgrApp
             this.Refresh();
 
             ISemController m_Sem= SemController.GetSEMController();
-
+            bool flag=m_Sem.Connect();
             //电镜设置对象
             var cfun = ScanController.GetScanController();
 
             bool IsConnec = cfun.Init();
-
+            
             double Magnification = 0;
             m_Sem.GetMagnification(ref Magnification);
 
@@ -1178,7 +1178,7 @@ namespace OTSSysMgrApp
 
             double scanFieldSize100 = 0;
             double.TryParse(tB_scanFieldSize100.Text, out scanFieldSize100);
-            double scanFieldSize = scanFieldSize100 / 100 * Magnification;
+            double scanFieldSize = scanFieldSize100 * 100 / Magnification;
 
             double PositionX = 0;
             double PositionY = 0;
@@ -1189,6 +1189,18 @@ namespace OTSSysMgrApp
             int width = Convert.ToInt32(Pic_width.Text);
             int height = Convert.ToInt32(Pic_height.Text);
 
+            //pictureBox1.Width = width;
+            pictureBox1.Height = pictureBox1.Width* height/ width;
+            //pictureBox2.Width = width;
+            pictureBox2.Height = pictureBox1.Width * height / width;
+            //pictureBox3.Width = width;
+            pictureBox3.Height = pictureBox1.Width * height / width;
+            //pictureBox4.Width = width;
+            pictureBox4.Height = pictureBox1.Width * height / width;
+            pictureBox2.Location = new Point(pictureBox1.Location.X + pictureBox1.Width, pictureBox1.Location.Y);
+            pictureBox3.Location = new Point(pictureBox1.Location.X , pictureBox1.Location.Y+ pictureBox1.Height);
+            pictureBox4.Location = new Point(pictureBox1.Location.X+ pictureBox1.Width , pictureBox1.Location.Y+ pictureBox1.Height);
+
             double scanFieldSizeH = scanFieldSize * height / width;
 
             m_Sem.SetScanExternal(true);
@@ -1208,14 +1220,16 @@ namespace OTSSysMgrApp
                             case "RIGHT_TOWARD": PositionX += scanFieldSize; break;
                             default: PositionX -= scanFieldSize; break;
                         }
+                        m_Sem.MoveSEMToPoint(PositionX, PositionY);
                     }
                     else if(i==2)
                     {
                         switch (cb_Ydirection.SelectedItem.ToString())
                         {
-                            case "UP_TOWARD": PositionY -= scanFieldSizeH; break;
-                            default: PositionY += scanFieldSizeH; break;
+                            case "UP_TOWARD": PositionY += scanFieldSizeH; break;
+                            default: PositionY -= scanFieldSizeH; break;
                         }
+                        m_Sem.MoveSEMToPoint(PositionX, PositionY);
                     }
                     else
                     {
@@ -1224,11 +1238,12 @@ namespace OTSSysMgrApp
                             case "RIGHT_TOWARD": PositionX -= scanFieldSize; break;
                             default: PositionX += scanFieldSize; break;
                         }
+                        m_Sem.MoveSEMToPoint(PositionX, PositionY);
                     }
-                    m_Sem.MoveSEMToPoint(PositionX, PositionY);
-
+                    //MessageBox.Show(PositionX.ToString() + "," + PositionY.ToString());
+                    //Thread.Sleep(50);
                     byte[] ImageByte = new byte[width * height];
-                    bool resultValue = GetScanImage(Width, height, "4", ref ImageByte);
+                    bool resultValue = GetScanImage(width, height, "2", ref ImageByte);
                     string str2 = table["str2"].ToString();
 
                     if (resultValue)
@@ -1245,10 +1260,10 @@ namespace OTSSysMgrApp
                                     pictureBox2.Image = bitmap;
                                     break;
                                 case 2:
-                                    pictureBox3.Image = bitmap;
+                                    pictureBox4.Image = bitmap;
                                     break;
                                 case 3:
-                                    pictureBox4.Image = bitmap;
+                                    pictureBox3.Image = bitmap;
                                     break;
                             }
                         }