瀏覽代碼

update FIB Control .ely files.

@wang_qi0307 5 年之前
父節點
當前提交
ecf2ac8cd8
共有 4 個文件被更改,包括 510 次插入393 次删除
  1. 438 393
      HOZProject/FormUnitControl.Designer.cs
  2. 19 0
      HOZProject/FormUnitControl.cs
  3. 6 0
      SmartSEMControl/HardwareInterface.cs
  4. 47 0
      SmartSEMControl/SmartSEM.cs

+ 438 - 393
HOZProject/FormUnitControl.Designer.cs

@@ -102,30 +102,8 @@
             this.btnMILL = new System.Windows.Forms.Button();
             this.btnFIB = new System.Windows.Forms.Button();
             this.panelSEM = new System.Windows.Forms.Panel();
-            this.btnFrozen = new System.Windows.Forms.Button();
-            this.btnLive = new System.Windows.Forms.Button();
-            this.btnAutoStig = new System.Windows.Forms.Button();
-            this.btnTiltCorrYSet = new System.Windows.Forms.Button();
-            this.cmbImageStore = new System.Windows.Forms.ComboBox();
-            this.btnAutoBCCancle = new System.Windows.Forms.Button();
-            this.lblImageStore = new System.Windows.Forms.Label();
-            this.txtTiltCorrY = new System.Windows.Forms.TextBox();
-            this.btnImageStoreSet = new System.Windows.Forms.Button();
-            this.btnImageStoreGet = new System.Windows.Forms.Button();
-            this.btnAutoBC = new System.Windows.Forms.Button();
-            this.label2 = new System.Windows.Forms.Label();
-            this.btnAutoContrast = new System.Windows.Forms.Button();
-            this.btnTiltCorrYGet = new System.Windows.Forms.Button();
-            this.btnAutoBrightness = new System.Windows.Forms.Button();
-            this.btnTiltCorrXSet = new System.Windows.Forms.Button();
-            this.txtTiltCorrX = new System.Windows.Forms.TextBox();
-            this.btnAutoFocus2 = new System.Windows.Forms.Button();
-            this.btnAutoFocus1 = new System.Windows.Forms.Button();
-            this.btnTiltCorrXGet = new System.Windows.Forms.Button();
-            this.label12 = new System.Windows.Forms.Label();
-            this.lblPixelSizeGet = new System.Windows.Forms.Label();
-            this.btnTiltCorr = new System.Windows.Forms.Button();
             this.panelFIB = new System.Windows.Forms.Panel();
+            this.btnExeEly = new System.Windows.Forms.Button();
             this.btnFIBAstigmatismYSet = new System.Windows.Forms.Button();
             this.txtFIBAstigmatismY = new System.Windows.Forms.TextBox();
             this.label22 = new System.Windows.Forms.Label();
@@ -151,6 +129,29 @@
             this.btnFIBWDGet = new System.Windows.Forms.Button();
             this.label16 = new System.Windows.Forms.Label();
             this.txtFIBWD = new System.Windows.Forms.TextBox();
+            this.btnFrozen = new System.Windows.Forms.Button();
+            this.btnLive = new System.Windows.Forms.Button();
+            this.btnAutoStig = new System.Windows.Forms.Button();
+            this.btnTiltCorrYSet = new System.Windows.Forms.Button();
+            this.cmbImageStore = new System.Windows.Forms.ComboBox();
+            this.btnAutoBCCancle = new System.Windows.Forms.Button();
+            this.lblImageStore = new System.Windows.Forms.Label();
+            this.txtTiltCorrY = new System.Windows.Forms.TextBox();
+            this.btnImageStoreSet = new System.Windows.Forms.Button();
+            this.btnImageStoreGet = new System.Windows.Forms.Button();
+            this.btnAutoBC = new System.Windows.Forms.Button();
+            this.label2 = new System.Windows.Forms.Label();
+            this.btnAutoContrast = new System.Windows.Forms.Button();
+            this.btnTiltCorrYGet = new System.Windows.Forms.Button();
+            this.btnAutoBrightness = new System.Windows.Forms.Button();
+            this.btnTiltCorrXSet = new System.Windows.Forms.Button();
+            this.txtTiltCorrX = new System.Windows.Forms.TextBox();
+            this.btnAutoFocus2 = new System.Windows.Forms.Button();
+            this.btnAutoFocus1 = new System.Windows.Forms.Button();
+            this.btnTiltCorrXGet = new System.Windows.Forms.Button();
+            this.label12 = new System.Windows.Forms.Label();
+            this.lblPixelSizeGet = new System.Windows.Forms.Label();
+            this.btnTiltCorr = new System.Windows.Forms.Button();
             this.btnSEM = new System.Windows.Forms.Button();
             this.panelStage = new System.Windows.Forms.Panel();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
@@ -158,6 +159,8 @@
             this.btnAbort = new System.Windows.Forms.Button();
             this.btnMoveXY = new System.Windows.Forms.Button();
             this.label24 = new System.Windows.Forms.Label();
+            this.btnExeEly2 = new System.Windows.Forms.Button();
+            this.btnFIBStatus = new System.Windows.Forms.Button();
             this.panelControl.SuspendLayout();
             this.panelSEM.SuspendLayout();
             this.panelFIB.SuspendLayout();
@@ -975,6 +978,7 @@
             // 
             // panelSEM
             // 
+            this.panelSEM.Controls.Add(this.panelFIB);
             this.panelSEM.Controls.Add(this.btnFrozen);
             this.panelSEM.Controls.Add(this.btnLive);
             this.panelSEM.Controls.Add(this.btnAutoStig);
@@ -1034,400 +1038,140 @@
             this.panelSEM.Controls.Add(this.btnContrastSet);
             this.panelSEM.Controls.Add(this.txtContrastSet);
             this.panelSEM.Controls.Add(this.btnTiltCorr);
-            this.panelSEM.Controls.Add(this.panelFIB);
             this.panelSEM.Dock = System.Windows.Forms.DockStyle.Bottom;
             this.panelSEM.Location = new System.Drawing.Point(0, 73);
             this.panelSEM.Name = "panelSEM";
             this.panelSEM.Size = new System.Drawing.Size(763, 498);
             this.panelSEM.TabIndex = 47;
             // 
-            // btnFrozen
-            // 
-            this.btnFrozen.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnFrozen.Location = new System.Drawing.Point(649, 205);
-            this.btnFrozen.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnFrozen.Name = "btnFrozen";
-            this.btnFrozen.Size = new System.Drawing.Size(86, 41);
-            this.btnFrozen.TabIndex = 89;
-            this.btnFrozen.Text = "冻结";
-            this.btnFrozen.UseVisualStyleBackColor = true;
-            this.btnFrozen.Click += new System.EventHandler(this.btnFrozen_Click);
-            // 
-            // btnLive
+            // panelFIB
             // 
-            this.btnLive.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnLive.Location = new System.Drawing.Point(557, 205);
-            this.btnLive.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnLive.Name = "btnLive";
-            this.btnLive.Size = new System.Drawing.Size(86, 41);
-            this.btnLive.TabIndex = 88;
-            this.btnLive.Text = "解冻";
-            this.btnLive.UseVisualStyleBackColor = true;
-            this.btnLive.Click += new System.EventHandler(this.btnLive_Click);
+            this.panelFIB.Controls.Add(this.btnFIBStatus);
+            this.panelFIB.Controls.Add(this.btnExeEly2);
+            this.panelFIB.Controls.Add(this.btnExeEly);
+            this.panelFIB.Controls.Add(this.btnFIBAstigmatismYSet);
+            this.panelFIB.Controls.Add(this.txtFIBAstigmatismY);
+            this.panelFIB.Controls.Add(this.label22);
+            this.panelFIB.Controls.Add(this.btnFIBAstigmatismYGet);
+            this.panelFIB.Controls.Add(this.btnFIBAstigmatismXSet);
+            this.panelFIB.Controls.Add(this.txtFIBAstigmatismX);
+            this.panelFIB.Controls.Add(this.btnFIBAstigmatismXGet);
+            this.panelFIB.Controls.Add(this.label23);
+            this.panelFIB.Controls.Add(this.btnFIBBeamShiftYSet);
+            this.panelFIB.Controls.Add(this.txtFIBBeamShiftY);
+            this.panelFIB.Controls.Add(this.label18);
+            this.panelFIB.Controls.Add(this.btnFIBBeamShiftYGet);
+            this.panelFIB.Controls.Add(this.btnFIBBeamShiftXSet);
+            this.panelFIB.Controls.Add(this.txtFIBBeamShiftX);
+            this.panelFIB.Controls.Add(this.btnFIBBeamShiftXGet);
+            this.panelFIB.Controls.Add(this.label20);
+            this.panelFIB.Controls.Add(this.btnMCF);
+            this.panelFIB.Controls.Add(this.label14);
+            this.panelFIB.Controls.Add(this.btnFIBMagSet);
+            this.panelFIB.Controls.Add(this.btnFIBMagGet);
+            this.panelFIB.Controls.Add(this.txtFIBMag);
+            this.panelFIB.Controls.Add(this.btnFIBWDSet);
+            this.panelFIB.Controls.Add(this.btnFIBWDGet);
+            this.panelFIB.Controls.Add(this.label16);
+            this.panelFIB.Controls.Add(this.txtFIBWD);
+            this.panelFIB.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panelFIB.Location = new System.Drawing.Point(0, 0);
+            this.panelFIB.Name = "panelFIB";
+            this.panelFIB.Size = new System.Drawing.Size(763, 363);
+            this.panelFIB.TabIndex = 50;
+            this.panelFIB.Visible = false;
             // 
-            // btnAutoStig
+            // btnExeEly
             // 
-            this.btnAutoStig.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoStig.Location = new System.Drawing.Point(356, 210);
-            this.btnAutoStig.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoStig.Name = "btnAutoStig";
-            this.btnAutoStig.Size = new System.Drawing.Size(69, 79);
-            this.btnAutoStig.TabIndex = 34;
-            this.btnAutoStig.Text = "自动";
-            this.btnAutoStig.UseVisualStyleBackColor = true;
-            this.btnAutoStig.Click += new System.EventHandler(this.btnAutoStig_Click);
+            this.btnExeEly.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnExeEly.Location = new System.Drawing.Point(529, 210);
+            this.btnExeEly.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnExeEly.Name = "btnExeEly";
+            this.btnExeEly.Size = new System.Drawing.Size(144, 41);
+            this.btnExeEly.TabIndex = 72;
+            this.btnExeEly.Text = "执行ely1文件";
+            this.btnExeEly.UseVisualStyleBackColor = true;
+            this.btnExeEly.Click += new System.EventHandler(this.btnExeEly_Click);
             // 
-            // btnTiltCorrYSet
+            // btnFIBAstigmatismYSet
             // 
-            this.btnTiltCorrYSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnTiltCorrYSet.Location = new System.Drawing.Point(672, 431);
-            this.btnTiltCorrYSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnTiltCorrYSet.Name = "btnTiltCorrYSet";
-            this.btnTiltCorrYSet.Size = new System.Drawing.Size(54, 34);
-            this.btnTiltCorrYSet.TabIndex = 54;
-            this.btnTiltCorrYSet.Text = "写";
-            this.btnTiltCorrYSet.UseVisualStyleBackColor = true;
-            this.btnTiltCorrYSet.Click += new System.EventHandler(this.btnTiltCorrYSet_Click);
+            this.btnFIBAstigmatismYSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFIBAstigmatismYSet.Location = new System.Drawing.Point(304, 172);
+            this.btnFIBAstigmatismYSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFIBAstigmatismYSet.Name = "btnFIBAstigmatismYSet";
+            this.btnFIBAstigmatismYSet.Size = new System.Drawing.Size(54, 34);
+            this.btnFIBAstigmatismYSet.TabIndex = 71;
+            this.btnFIBAstigmatismYSet.Text = "写";
+            this.btnFIBAstigmatismYSet.UseVisualStyleBackColor = true;
+            this.btnFIBAstigmatismYSet.Click += new System.EventHandler(this.btnFIBAstigmatismYSet_Click);
             // 
-            // cmbImageStore
+            // txtFIBAstigmatismY
             // 
-            this.cmbImageStore.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbImageStore.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cmbImageStore.FormattingEnabled = true;
-            this.cmbImageStore.Items.AddRange(new object[] {
-            "1024 * 768",
-            "512 * 384",
-            "2048 * 1536",
-            "3072 * 2304",
-            "4096 * 3072",
-            "5120 * 3840",
-            "6144 * 4608",
-            "8192 * 6144",
-            "12288 * 9216",
-            "16384 * 12288",
-            "24576 * 18432",
-            "32768 * 24576"});
-            this.cmbImageStore.Location = new System.Drawing.Point(613, 317);
-            this.cmbImageStore.Name = "cmbImageStore";
-            this.cmbImageStore.Size = new System.Drawing.Size(144, 26);
-            this.cmbImageStore.TabIndex = 87;
+            this.txtFIBAstigmatismY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.txtFIBAstigmatismY.Location = new System.Drawing.Point(162, 174);
+            this.txtFIBAstigmatismY.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.txtFIBAstigmatismY.Name = "txtFIBAstigmatismY";
+            this.txtFIBAstigmatismY.Size = new System.Drawing.Size(85, 30);
+            this.txtFIBAstigmatismY.TabIndex = 70;
+            this.txtFIBAstigmatismY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
-            // btnAutoBCCancle
+            // label22
             // 
-            this.btnAutoBCCancle.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoBCCancle.Location = new System.Drawing.Point(431, 114);
-            this.btnAutoBCCancle.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoBCCancle.Name = "btnAutoBCCancle";
-            this.btnAutoBCCancle.Size = new System.Drawing.Size(29, 81);
-            this.btnAutoBCCancle.TabIndex = 29;
-            this.btnAutoBCCancle.Text = "取消";
-            this.btnAutoBCCancle.UseVisualStyleBackColor = true;
-            this.btnAutoBCCancle.Click += new System.EventHandler(this.btnAutoBCCancle_Click);
+            this.label22.AutoSize = true;
+            this.label22.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label22.Location = new System.Drawing.Point(20, 176);
+            this.label22.Name = "label22";
+            this.label22.Size = new System.Drawing.Size(104, 27);
+            this.label22.TabIndex = 69;
+            this.label22.Text = "消像散Y:";
             // 
-            // lblImageStore
+            // btnFIBAstigmatismYGet
             // 
-            this.lblImageStore.AutoSize = true;
-            this.lblImageStore.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.lblImageStore.Location = new System.Drawing.Point(608, 255);
-            this.lblImageStore.Name = "lblImageStore";
-            this.lblImageStore.Size = new System.Drawing.Size(0, 27);
-            this.lblImageStore.TabIndex = 86;
+            this.btnFIBAstigmatismYGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFIBAstigmatismYGet.Location = new System.Drawing.Point(251, 172);
+            this.btnFIBAstigmatismYGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFIBAstigmatismYGet.Name = "btnFIBAstigmatismYGet";
+            this.btnFIBAstigmatismYGet.Size = new System.Drawing.Size(54, 34);
+            this.btnFIBAstigmatismYGet.TabIndex = 68;
+            this.btnFIBAstigmatismYGet.Text = "读";
+            this.btnFIBAstigmatismYGet.UseVisualStyleBackColor = true;
+            this.btnFIBAstigmatismYGet.Click += new System.EventHandler(this.btnFIBAstigmatismYGet_Click);
             // 
-            // txtTiltCorrY
+            // btnFIBAstigmatismXSet
             // 
-            this.txtTiltCorrY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
-            this.txtTiltCorrY.Location = new System.Drawing.Point(530, 433);
-            this.txtTiltCorrY.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
-            this.txtTiltCorrY.Name = "txtTiltCorrY";
-            this.txtTiltCorrY.Size = new System.Drawing.Size(85, 30);
-            this.txtTiltCorrY.TabIndex = 53;
-            this.txtTiltCorrY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.btnFIBAstigmatismXSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFIBAstigmatismXSet.Location = new System.Drawing.Point(304, 125);
+            this.btnFIBAstigmatismXSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFIBAstigmatismXSet.Name = "btnFIBAstigmatismXSet";
+            this.btnFIBAstigmatismXSet.Size = new System.Drawing.Size(54, 34);
+            this.btnFIBAstigmatismXSet.TabIndex = 67;
+            this.btnFIBAstigmatismXSet.Text = "写";
+            this.btnFIBAstigmatismXSet.UseVisualStyleBackColor = true;
+            this.btnFIBAstigmatismXSet.Click += new System.EventHandler(this.btnFIBAstigmatismXSet_Click);
             // 
-            // btnImageStoreSet
+            // txtFIBAstigmatismX
             // 
-            this.btnImageStoreSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnImageStoreSet.Location = new System.Drawing.Point(431, 308);
-            this.btnImageStoreSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnImageStoreSet.Name = "btnImageStoreSet";
-            this.btnImageStoreSet.Size = new System.Drawing.Size(144, 41);
-            this.btnImageStoreSet.TabIndex = 85;
-            this.btnImageStoreSet.Text = "设置分辨率";
-            this.btnImageStoreSet.UseVisualStyleBackColor = true;
-            this.btnImageStoreSet.Click += new System.EventHandler(this.btnImageStoreSet_Click);
+            this.txtFIBAstigmatismX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.txtFIBAstigmatismX.Location = new System.Drawing.Point(162, 127);
+            this.txtFIBAstigmatismX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.txtFIBAstigmatismX.Name = "txtFIBAstigmatismX";
+            this.txtFIBAstigmatismX.Size = new System.Drawing.Size(85, 30);
+            this.txtFIBAstigmatismX.TabIndex = 66;
+            this.txtFIBAstigmatismX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
-            // btnImageStoreGet
+            // btnFIBAstigmatismXGet
             // 
-            this.btnImageStoreGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnImageStoreGet.Location = new System.Drawing.Point(431, 248);
-            this.btnImageStoreGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnImageStoreGet.Name = "btnImageStoreGet";
-            this.btnImageStoreGet.Size = new System.Drawing.Size(144, 41);
-            this.btnImageStoreGet.TabIndex = 84;
-            this.btnImageStoreGet.Text = "获取分辨率";
-            this.btnImageStoreGet.UseVisualStyleBackColor = true;
-            this.btnImageStoreGet.Click += new System.EventHandler(this.btnImageStoreGet_Click);
+            this.btnFIBAstigmatismXGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFIBAstigmatismXGet.Location = new System.Drawing.Point(251, 125);
+            this.btnFIBAstigmatismXGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFIBAstigmatismXGet.Name = "btnFIBAstigmatismXGet";
+            this.btnFIBAstigmatismXGet.Size = new System.Drawing.Size(54, 34);
+            this.btnFIBAstigmatismXGet.TabIndex = 64;
+            this.btnFIBAstigmatismXGet.Text = "读";
+            this.btnFIBAstigmatismXGet.UseVisualStyleBackColor = true;
+            this.btnFIBAstigmatismXGet.Click += new System.EventHandler(this.btnFIBAstigmatismXGet_Click);
             // 
-            // btnAutoBC
-            // 
-            this.btnAutoBC.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoBC.Location = new System.Drawing.Point(472, 114);
-            this.btnAutoBC.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoBC.Name = "btnAutoBC";
-            this.btnAutoBC.Size = new System.Drawing.Size(30, 82);
-            this.btnAutoBC.TabIndex = 28;
-            this.btnAutoBC.Text = "自动";
-            this.btnAutoBC.UseVisualStyleBackColor = true;
-            this.btnAutoBC.Click += new System.EventHandler(this.btnAutoBC_Click);
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(417, 435);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(104, 27);
-            this.label2.TabIndex = 52;
-            this.label2.Text = "电子束Y:";
-            // 
-            // btnAutoContrast
-            // 
-            this.btnAutoContrast.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoContrast.Location = new System.Drawing.Point(354, 161);
-            this.btnAutoContrast.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoContrast.Name = "btnAutoContrast";
-            this.btnAutoContrast.Size = new System.Drawing.Size(71, 34);
-            this.btnAutoContrast.TabIndex = 27;
-            this.btnAutoContrast.Text = "自动";
-            this.btnAutoContrast.UseVisualStyleBackColor = true;
-            this.btnAutoContrast.Click += new System.EventHandler(this.btnAutoContrast_Click);
-            // 
-            // btnTiltCorrYGet
-            // 
-            this.btnTiltCorrYGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnTiltCorrYGet.Location = new System.Drawing.Point(619, 431);
-            this.btnTiltCorrYGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnTiltCorrYGet.Name = "btnTiltCorrYGet";
-            this.btnTiltCorrYGet.Size = new System.Drawing.Size(54, 34);
-            this.btnTiltCorrYGet.TabIndex = 51;
-            this.btnTiltCorrYGet.Text = "读";
-            this.btnTiltCorrYGet.UseVisualStyleBackColor = true;
-            this.btnTiltCorrYGet.Click += new System.EventHandler(this.btnTiltCorrYGet_Click);
-            // 
-            // btnAutoBrightness
-            // 
-            this.btnAutoBrightness.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoBrightness.Location = new System.Drawing.Point(353, 114);
-            this.btnAutoBrightness.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoBrightness.Name = "btnAutoBrightness";
-            this.btnAutoBrightness.Size = new System.Drawing.Size(71, 34);
-            this.btnAutoBrightness.TabIndex = 26;
-            this.btnAutoBrightness.Text = "自动";
-            this.btnAutoBrightness.UseVisualStyleBackColor = true;
-            this.btnAutoBrightness.Click += new System.EventHandler(this.btnAutoBrightness_Click);
-            // 
-            // btnTiltCorrXSet
-            // 
-            this.btnTiltCorrXSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnTiltCorrXSet.Location = new System.Drawing.Point(672, 384);
-            this.btnTiltCorrXSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnTiltCorrXSet.Name = "btnTiltCorrXSet";
-            this.btnTiltCorrXSet.Size = new System.Drawing.Size(54, 34);
-            this.btnTiltCorrXSet.TabIndex = 50;
-            this.btnTiltCorrXSet.Text = "写";
-            this.btnTiltCorrXSet.UseVisualStyleBackColor = true;
-            this.btnTiltCorrXSet.Click += new System.EventHandler(this.btnTiltCorrXSet_Click);
-            // 
-            // txtTiltCorrX
-            // 
-            this.txtTiltCorrX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
-            this.txtTiltCorrX.Location = new System.Drawing.Point(530, 386);
-            this.txtTiltCorrX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
-            this.txtTiltCorrX.Name = "txtTiltCorrX";
-            this.txtTiltCorrX.Size = new System.Drawing.Size(85, 30);
-            this.txtTiltCorrX.TabIndex = 49;
-            this.txtTiltCorrX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
-            // btnAutoFocus2
-            // 
-            this.btnAutoFocus2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoFocus2.Location = new System.Drawing.Point(431, 68);
-            this.btnAutoFocus2.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoFocus2.Name = "btnAutoFocus2";
-            this.btnAutoFocus2.Size = new System.Drawing.Size(71, 34);
-            this.btnAutoFocus2.TabIndex = 25;
-            this.btnAutoFocus2.Text = "自动2";
-            this.btnAutoFocus2.UseVisualStyleBackColor = true;
-            this.btnAutoFocus2.Click += new System.EventHandler(this.btnAutoFocus2_Click);
-            // 
-            // btnAutoFocus1
-            // 
-            this.btnAutoFocus1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnAutoFocus1.Location = new System.Drawing.Point(354, 67);
-            this.btnAutoFocus1.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnAutoFocus1.Name = "btnAutoFocus1";
-            this.btnAutoFocus1.Size = new System.Drawing.Size(71, 34);
-            this.btnAutoFocus1.TabIndex = 24;
-            this.btnAutoFocus1.Text = "自动1";
-            this.btnAutoFocus1.UseVisualStyleBackColor = true;
-            this.btnAutoFocus1.Click += new System.EventHandler(this.btnAutoFocus1_Click);
-            // 
-            // btnTiltCorrXGet
-            // 
-            this.btnTiltCorrXGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnTiltCorrXGet.Location = new System.Drawing.Point(619, 384);
-            this.btnTiltCorrXGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnTiltCorrXGet.Name = "btnTiltCorrXGet";
-            this.btnTiltCorrXGet.Size = new System.Drawing.Size(54, 34);
-            this.btnTiltCorrXGet.TabIndex = 47;
-            this.btnTiltCorrXGet.Text = "读";
-            this.btnTiltCorrXGet.UseVisualStyleBackColor = true;
-            this.btnTiltCorrXGet.Click += new System.EventHandler(this.btnTiltCorrXGet_Click);
-            // 
-            // label12
-            // 
-            this.label12.AutoSize = true;
-            this.label12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label12.Location = new System.Drawing.Point(417, 388);
-            this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(105, 27);
-            this.label12.TabIndex = 48;
-            this.label12.Text = "电子束X:";
-            // 
-            // lblPixelSizeGet
-            // 
-            this.lblPixelSizeGet.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
-            this.lblPixelSizeGet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lblPixelSizeGet.Location = new System.Drawing.Point(154, 432);
-            this.lblPixelSizeGet.Name = "lblPixelSizeGet";
-            this.lblPixelSizeGet.Size = new System.Drawing.Size(85, 33);
-            this.lblPixelSizeGet.TabIndex = 46;
-            this.lblPixelSizeGet.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // btnTiltCorr
-            // 
-            this.btnTiltCorr.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnTiltCorr.Location = new System.Drawing.Point(591, 120);
-            this.btnTiltCorr.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnTiltCorr.Name = "btnTiltCorr";
-            this.btnTiltCorr.Size = new System.Drawing.Size(144, 76);
-            this.btnTiltCorr.TabIndex = 55;
-            this.btnTiltCorr.Text = "电子束校正";
-            this.btnTiltCorr.UseVisualStyleBackColor = true;
-            this.btnTiltCorr.Click += new System.EventHandler(this.btnTiltCorr_Click);
-            // 
-            // panelFIB
-            // 
-            this.panelFIB.Controls.Add(this.btnFIBAstigmatismYSet);
-            this.panelFIB.Controls.Add(this.txtFIBAstigmatismY);
-            this.panelFIB.Controls.Add(this.label22);
-            this.panelFIB.Controls.Add(this.btnFIBAstigmatismYGet);
-            this.panelFIB.Controls.Add(this.btnFIBAstigmatismXSet);
-            this.panelFIB.Controls.Add(this.txtFIBAstigmatismX);
-            this.panelFIB.Controls.Add(this.btnFIBAstigmatismXGet);
-            this.panelFIB.Controls.Add(this.label23);
-            this.panelFIB.Controls.Add(this.btnFIBBeamShiftYSet);
-            this.panelFIB.Controls.Add(this.txtFIBBeamShiftY);
-            this.panelFIB.Controls.Add(this.label18);
-            this.panelFIB.Controls.Add(this.btnFIBBeamShiftYGet);
-            this.panelFIB.Controls.Add(this.btnFIBBeamShiftXSet);
-            this.panelFIB.Controls.Add(this.txtFIBBeamShiftX);
-            this.panelFIB.Controls.Add(this.btnFIBBeamShiftXGet);
-            this.panelFIB.Controls.Add(this.label20);
-            this.panelFIB.Controls.Add(this.btnMCF);
-            this.panelFIB.Controls.Add(this.label14);
-            this.panelFIB.Controls.Add(this.btnFIBMagSet);
-            this.panelFIB.Controls.Add(this.btnFIBMagGet);
-            this.panelFIB.Controls.Add(this.txtFIBMag);
-            this.panelFIB.Controls.Add(this.btnFIBWDSet);
-            this.panelFIB.Controls.Add(this.btnFIBWDGet);
-            this.panelFIB.Controls.Add(this.label16);
-            this.panelFIB.Controls.Add(this.txtFIBWD);
-            this.panelFIB.Dock = System.Windows.Forms.DockStyle.Top;
-            this.panelFIB.Location = new System.Drawing.Point(0, 0);
-            this.panelFIB.Name = "panelFIB";
-            this.panelFIB.Size = new System.Drawing.Size(763, 219);
-            this.panelFIB.TabIndex = 50;
-            this.panelFIB.Visible = false;
-            // 
-            // btnFIBAstigmatismYSet
-            // 
-            this.btnFIBAstigmatismYSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnFIBAstigmatismYSet.Location = new System.Drawing.Point(304, 172);
-            this.btnFIBAstigmatismYSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnFIBAstigmatismYSet.Name = "btnFIBAstigmatismYSet";
-            this.btnFIBAstigmatismYSet.Size = new System.Drawing.Size(54, 34);
-            this.btnFIBAstigmatismYSet.TabIndex = 71;
-            this.btnFIBAstigmatismYSet.Text = "写";
-            this.btnFIBAstigmatismYSet.UseVisualStyleBackColor = true;
-            this.btnFIBAstigmatismYSet.Click += new System.EventHandler(this.btnFIBAstigmatismYSet_Click);
-            // 
-            // txtFIBAstigmatismY
-            // 
-            this.txtFIBAstigmatismY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
-            this.txtFIBAstigmatismY.Location = new System.Drawing.Point(162, 174);
-            this.txtFIBAstigmatismY.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
-            this.txtFIBAstigmatismY.Name = "txtFIBAstigmatismY";
-            this.txtFIBAstigmatismY.Size = new System.Drawing.Size(85, 30);
-            this.txtFIBAstigmatismY.TabIndex = 70;
-            this.txtFIBAstigmatismY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
-            // label22
-            // 
-            this.label22.AutoSize = true;
-            this.label22.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label22.Location = new System.Drawing.Point(20, 176);
-            this.label22.Name = "label22";
-            this.label22.Size = new System.Drawing.Size(104, 27);
-            this.label22.TabIndex = 69;
-            this.label22.Text = "消像散Y:";
-            // 
-            // btnFIBAstigmatismYGet
-            // 
-            this.btnFIBAstigmatismYGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnFIBAstigmatismYGet.Location = new System.Drawing.Point(251, 172);
-            this.btnFIBAstigmatismYGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnFIBAstigmatismYGet.Name = "btnFIBAstigmatismYGet";
-            this.btnFIBAstigmatismYGet.Size = new System.Drawing.Size(54, 34);
-            this.btnFIBAstigmatismYGet.TabIndex = 68;
-            this.btnFIBAstigmatismYGet.Text = "读";
-            this.btnFIBAstigmatismYGet.UseVisualStyleBackColor = true;
-            this.btnFIBAstigmatismYGet.Click += new System.EventHandler(this.btnFIBAstigmatismYGet_Click);
-            // 
-            // btnFIBAstigmatismXSet
-            // 
-            this.btnFIBAstigmatismXSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnFIBAstigmatismXSet.Location = new System.Drawing.Point(304, 125);
-            this.btnFIBAstigmatismXSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnFIBAstigmatismXSet.Name = "btnFIBAstigmatismXSet";
-            this.btnFIBAstigmatismXSet.Size = new System.Drawing.Size(54, 34);
-            this.btnFIBAstigmatismXSet.TabIndex = 67;
-            this.btnFIBAstigmatismXSet.Text = "写";
-            this.btnFIBAstigmatismXSet.UseVisualStyleBackColor = true;
-            this.btnFIBAstigmatismXSet.Click += new System.EventHandler(this.btnFIBAstigmatismXSet_Click);
-            // 
-            // txtFIBAstigmatismX
-            // 
-            this.txtFIBAstigmatismX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
-            this.txtFIBAstigmatismX.Location = new System.Drawing.Point(162, 127);
-            this.txtFIBAstigmatismX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
-            this.txtFIBAstigmatismX.Name = "txtFIBAstigmatismX";
-            this.txtFIBAstigmatismX.Size = new System.Drawing.Size(85, 30);
-            this.txtFIBAstigmatismX.TabIndex = 66;
-            this.txtFIBAstigmatismX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
-            // btnFIBAstigmatismXGet
-            // 
-            this.btnFIBAstigmatismXGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnFIBAstigmatismXGet.Location = new System.Drawing.Point(251, 125);
-            this.btnFIBAstigmatismXGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
-            this.btnFIBAstigmatismXGet.Name = "btnFIBAstigmatismXGet";
-            this.btnFIBAstigmatismXGet.Size = new System.Drawing.Size(54, 34);
-            this.btnFIBAstigmatismXGet.TabIndex = 64;
-            this.btnFIBAstigmatismXGet.Text = "读";
-            this.btnFIBAstigmatismXGet.UseVisualStyleBackColor = true;
-            this.btnFIBAstigmatismXGet.Click += new System.EventHandler(this.btnFIBAstigmatismXGet_Click);
-            // 
-            // label23
+            // label23
             // 
             this.label23.AutoSize = true;
             this.label23.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1625,6 +1369,280 @@
             this.txtFIBWD.TabIndex = 20;
             this.txtFIBWD.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
+            // btnFrozen
+            // 
+            this.btnFrozen.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFrozen.Location = new System.Drawing.Point(649, 205);
+            this.btnFrozen.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFrozen.Name = "btnFrozen";
+            this.btnFrozen.Size = new System.Drawing.Size(86, 41);
+            this.btnFrozen.TabIndex = 89;
+            this.btnFrozen.Text = "冻结";
+            this.btnFrozen.UseVisualStyleBackColor = true;
+            this.btnFrozen.Click += new System.EventHandler(this.btnFrozen_Click);
+            // 
+            // btnLive
+            // 
+            this.btnLive.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnLive.Location = new System.Drawing.Point(557, 205);
+            this.btnLive.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnLive.Name = "btnLive";
+            this.btnLive.Size = new System.Drawing.Size(86, 41);
+            this.btnLive.TabIndex = 88;
+            this.btnLive.Text = "解冻";
+            this.btnLive.UseVisualStyleBackColor = true;
+            this.btnLive.Click += new System.EventHandler(this.btnLive_Click);
+            // 
+            // btnAutoStig
+            // 
+            this.btnAutoStig.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoStig.Location = new System.Drawing.Point(356, 210);
+            this.btnAutoStig.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoStig.Name = "btnAutoStig";
+            this.btnAutoStig.Size = new System.Drawing.Size(69, 79);
+            this.btnAutoStig.TabIndex = 34;
+            this.btnAutoStig.Text = "自动";
+            this.btnAutoStig.UseVisualStyleBackColor = true;
+            this.btnAutoStig.Click += new System.EventHandler(this.btnAutoStig_Click);
+            // 
+            // btnTiltCorrYSet
+            // 
+            this.btnTiltCorrYSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnTiltCorrYSet.Location = new System.Drawing.Point(672, 431);
+            this.btnTiltCorrYSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnTiltCorrYSet.Name = "btnTiltCorrYSet";
+            this.btnTiltCorrYSet.Size = new System.Drawing.Size(54, 34);
+            this.btnTiltCorrYSet.TabIndex = 54;
+            this.btnTiltCorrYSet.Text = "写";
+            this.btnTiltCorrYSet.UseVisualStyleBackColor = true;
+            this.btnTiltCorrYSet.Click += new System.EventHandler(this.btnTiltCorrYSet_Click);
+            // 
+            // cmbImageStore
+            // 
+            this.cmbImageStore.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbImageStore.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.cmbImageStore.FormattingEnabled = true;
+            this.cmbImageStore.Items.AddRange(new object[] {
+            "1024 * 768",
+            "512 * 384",
+            "2048 * 1536",
+            "3072 * 2304",
+            "4096 * 3072",
+            "5120 * 3840",
+            "6144 * 4608",
+            "8192 * 6144",
+            "12288 * 9216",
+            "16384 * 12288",
+            "24576 * 18432",
+            "32768 * 24576"});
+            this.cmbImageStore.Location = new System.Drawing.Point(613, 317);
+            this.cmbImageStore.Name = "cmbImageStore";
+            this.cmbImageStore.Size = new System.Drawing.Size(144, 26);
+            this.cmbImageStore.TabIndex = 87;
+            // 
+            // btnAutoBCCancle
+            // 
+            this.btnAutoBCCancle.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoBCCancle.Location = new System.Drawing.Point(431, 114);
+            this.btnAutoBCCancle.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoBCCancle.Name = "btnAutoBCCancle";
+            this.btnAutoBCCancle.Size = new System.Drawing.Size(29, 81);
+            this.btnAutoBCCancle.TabIndex = 29;
+            this.btnAutoBCCancle.Text = "取消";
+            this.btnAutoBCCancle.UseVisualStyleBackColor = true;
+            this.btnAutoBCCancle.Click += new System.EventHandler(this.btnAutoBCCancle_Click);
+            // 
+            // lblImageStore
+            // 
+            this.lblImageStore.AutoSize = true;
+            this.lblImageStore.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.lblImageStore.Location = new System.Drawing.Point(608, 255);
+            this.lblImageStore.Name = "lblImageStore";
+            this.lblImageStore.Size = new System.Drawing.Size(0, 27);
+            this.lblImageStore.TabIndex = 86;
+            // 
+            // txtTiltCorrY
+            // 
+            this.txtTiltCorrY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.txtTiltCorrY.Location = new System.Drawing.Point(530, 433);
+            this.txtTiltCorrY.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.txtTiltCorrY.Name = "txtTiltCorrY";
+            this.txtTiltCorrY.Size = new System.Drawing.Size(85, 30);
+            this.txtTiltCorrY.TabIndex = 53;
+            this.txtTiltCorrY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            // 
+            // btnImageStoreSet
+            // 
+            this.btnImageStoreSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnImageStoreSet.Location = new System.Drawing.Point(431, 308);
+            this.btnImageStoreSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnImageStoreSet.Name = "btnImageStoreSet";
+            this.btnImageStoreSet.Size = new System.Drawing.Size(144, 41);
+            this.btnImageStoreSet.TabIndex = 85;
+            this.btnImageStoreSet.Text = "设置分辨率";
+            this.btnImageStoreSet.UseVisualStyleBackColor = true;
+            this.btnImageStoreSet.Click += new System.EventHandler(this.btnImageStoreSet_Click);
+            // 
+            // btnImageStoreGet
+            // 
+            this.btnImageStoreGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnImageStoreGet.Location = new System.Drawing.Point(431, 248);
+            this.btnImageStoreGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnImageStoreGet.Name = "btnImageStoreGet";
+            this.btnImageStoreGet.Size = new System.Drawing.Size(144, 41);
+            this.btnImageStoreGet.TabIndex = 84;
+            this.btnImageStoreGet.Text = "获取分辨率";
+            this.btnImageStoreGet.UseVisualStyleBackColor = true;
+            this.btnImageStoreGet.Click += new System.EventHandler(this.btnImageStoreGet_Click);
+            // 
+            // btnAutoBC
+            // 
+            this.btnAutoBC.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoBC.Location = new System.Drawing.Point(472, 114);
+            this.btnAutoBC.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoBC.Name = "btnAutoBC";
+            this.btnAutoBC.Size = new System.Drawing.Size(30, 82);
+            this.btnAutoBC.TabIndex = 28;
+            this.btnAutoBC.Text = "自动";
+            this.btnAutoBC.UseVisualStyleBackColor = true;
+            this.btnAutoBC.Click += new System.EventHandler(this.btnAutoBC_Click);
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(417, 435);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(104, 27);
+            this.label2.TabIndex = 52;
+            this.label2.Text = "电子束Y:";
+            // 
+            // btnAutoContrast
+            // 
+            this.btnAutoContrast.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoContrast.Location = new System.Drawing.Point(354, 161);
+            this.btnAutoContrast.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoContrast.Name = "btnAutoContrast";
+            this.btnAutoContrast.Size = new System.Drawing.Size(71, 34);
+            this.btnAutoContrast.TabIndex = 27;
+            this.btnAutoContrast.Text = "自动";
+            this.btnAutoContrast.UseVisualStyleBackColor = true;
+            this.btnAutoContrast.Click += new System.EventHandler(this.btnAutoContrast_Click);
+            // 
+            // btnTiltCorrYGet
+            // 
+            this.btnTiltCorrYGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnTiltCorrYGet.Location = new System.Drawing.Point(619, 431);
+            this.btnTiltCorrYGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnTiltCorrYGet.Name = "btnTiltCorrYGet";
+            this.btnTiltCorrYGet.Size = new System.Drawing.Size(54, 34);
+            this.btnTiltCorrYGet.TabIndex = 51;
+            this.btnTiltCorrYGet.Text = "读";
+            this.btnTiltCorrYGet.UseVisualStyleBackColor = true;
+            this.btnTiltCorrYGet.Click += new System.EventHandler(this.btnTiltCorrYGet_Click);
+            // 
+            // btnAutoBrightness
+            // 
+            this.btnAutoBrightness.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoBrightness.Location = new System.Drawing.Point(353, 114);
+            this.btnAutoBrightness.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoBrightness.Name = "btnAutoBrightness";
+            this.btnAutoBrightness.Size = new System.Drawing.Size(71, 34);
+            this.btnAutoBrightness.TabIndex = 26;
+            this.btnAutoBrightness.Text = "自动";
+            this.btnAutoBrightness.UseVisualStyleBackColor = true;
+            this.btnAutoBrightness.Click += new System.EventHandler(this.btnAutoBrightness_Click);
+            // 
+            // btnTiltCorrXSet
+            // 
+            this.btnTiltCorrXSet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnTiltCorrXSet.Location = new System.Drawing.Point(672, 384);
+            this.btnTiltCorrXSet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnTiltCorrXSet.Name = "btnTiltCorrXSet";
+            this.btnTiltCorrXSet.Size = new System.Drawing.Size(54, 34);
+            this.btnTiltCorrXSet.TabIndex = 50;
+            this.btnTiltCorrXSet.Text = "写";
+            this.btnTiltCorrXSet.UseVisualStyleBackColor = true;
+            this.btnTiltCorrXSet.Click += new System.EventHandler(this.btnTiltCorrXSet_Click);
+            // 
+            // txtTiltCorrX
+            // 
+            this.txtTiltCorrX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
+            this.txtTiltCorrX.Location = new System.Drawing.Point(530, 386);
+            this.txtTiltCorrX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+            this.txtTiltCorrX.Name = "txtTiltCorrX";
+            this.txtTiltCorrX.Size = new System.Drawing.Size(85, 30);
+            this.txtTiltCorrX.TabIndex = 49;
+            this.txtTiltCorrX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            // 
+            // btnAutoFocus2
+            // 
+            this.btnAutoFocus2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoFocus2.Location = new System.Drawing.Point(431, 68);
+            this.btnAutoFocus2.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoFocus2.Name = "btnAutoFocus2";
+            this.btnAutoFocus2.Size = new System.Drawing.Size(71, 34);
+            this.btnAutoFocus2.TabIndex = 25;
+            this.btnAutoFocus2.Text = "自动2";
+            this.btnAutoFocus2.UseVisualStyleBackColor = true;
+            this.btnAutoFocus2.Click += new System.EventHandler(this.btnAutoFocus2_Click);
+            // 
+            // btnAutoFocus1
+            // 
+            this.btnAutoFocus1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnAutoFocus1.Location = new System.Drawing.Point(354, 67);
+            this.btnAutoFocus1.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnAutoFocus1.Name = "btnAutoFocus1";
+            this.btnAutoFocus1.Size = new System.Drawing.Size(71, 34);
+            this.btnAutoFocus1.TabIndex = 24;
+            this.btnAutoFocus1.Text = "自动1";
+            this.btnAutoFocus1.UseVisualStyleBackColor = true;
+            this.btnAutoFocus1.Click += new System.EventHandler(this.btnAutoFocus1_Click);
+            // 
+            // btnTiltCorrXGet
+            // 
+            this.btnTiltCorrXGet.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnTiltCorrXGet.Location = new System.Drawing.Point(619, 384);
+            this.btnTiltCorrXGet.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnTiltCorrXGet.Name = "btnTiltCorrXGet";
+            this.btnTiltCorrXGet.Size = new System.Drawing.Size(54, 34);
+            this.btnTiltCorrXGet.TabIndex = 47;
+            this.btnTiltCorrXGet.Text = "读";
+            this.btnTiltCorrXGet.UseVisualStyleBackColor = true;
+            this.btnTiltCorrXGet.Click += new System.EventHandler(this.btnTiltCorrXGet_Click);
+            // 
+            // label12
+            // 
+            this.label12.AutoSize = true;
+            this.label12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label12.Location = new System.Drawing.Point(417, 388);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(105, 27);
+            this.label12.TabIndex = 48;
+            this.label12.Text = "电子束X:";
+            // 
+            // lblPixelSizeGet
+            // 
+            this.lblPixelSizeGet.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblPixelSizeGet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lblPixelSizeGet.Location = new System.Drawing.Point(154, 432);
+            this.lblPixelSizeGet.Name = "lblPixelSizeGet";
+            this.lblPixelSizeGet.Size = new System.Drawing.Size(85, 33);
+            this.lblPixelSizeGet.TabIndex = 46;
+            this.lblPixelSizeGet.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // btnTiltCorr
+            // 
+            this.btnTiltCorr.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnTiltCorr.Location = new System.Drawing.Point(591, 120);
+            this.btnTiltCorr.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnTiltCorr.Name = "btnTiltCorr";
+            this.btnTiltCorr.Size = new System.Drawing.Size(144, 76);
+            this.btnTiltCorr.TabIndex = 55;
+            this.btnTiltCorr.Text = "电子束校正";
+            this.btnTiltCorr.UseVisualStyleBackColor = true;
+            this.btnTiltCorr.Click += new System.EventHandler(this.btnTiltCorr_Click);
+            // 
             // btnSEM
             // 
             this.btnSEM.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1735,6 +1753,30 @@
             this.label24.TabIndex = 82;
             this.label24.Text = "样品台";
             // 
+            // btnExeEly2
+            // 
+            this.btnExeEly2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnExeEly2.Location = new System.Drawing.Point(530, 259);
+            this.btnExeEly2.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnExeEly2.Name = "btnExeEly2";
+            this.btnExeEly2.Size = new System.Drawing.Size(144, 41);
+            this.btnExeEly2.TabIndex = 73;
+            this.btnExeEly2.Text = "执行ely2文件";
+            this.btnExeEly2.UseVisualStyleBackColor = true;
+            this.btnExeEly2.Click += new System.EventHandler(this.btnExeEly2_Click);
+            // 
+            // btnFIBStatus
+            // 
+            this.btnFIBStatus.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnFIBStatus.Location = new System.Drawing.Point(353, 229);
+            this.btnFIBStatus.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1);
+            this.btnFIBStatus.Name = "btnFIBStatus";
+            this.btnFIBStatus.Size = new System.Drawing.Size(144, 41);
+            this.btnFIBStatus.TabIndex = 74;
+            this.btnFIBStatus.Text = "FIB状态";
+            this.btnFIBStatus.UseVisualStyleBackColor = true;
+            this.btnFIBStatus.Click += new System.EventHandler(this.btnFIBStatus_Click);
+            // 
             // FormUnitControl
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
@@ -1889,6 +1931,9 @@
         private System.Windows.Forms.PictureBox pictureBox1;
         private System.Windows.Forms.Button btnFrozen;
         private System.Windows.Forms.Button btnLive;
+        private System.Windows.Forms.Button btnExeEly;
+        private System.Windows.Forms.Button btnExeEly2;
+        private System.Windows.Forms.Button btnFIBStatus;
     }
 }
 

+ 19 - 0
HOZProject/FormUnitControl.cs

@@ -611,6 +611,7 @@ namespace HOZProject
         }
         #endregion
 
+        #region 读取Xml文件
         private void btnReadXml_Click(object sender, EventArgs e)
         {
             MeasureFile mf = new MeasureFile();
@@ -623,7 +624,9 @@ namespace HOZProject
 
             doc.Save("test.xml");
         }
+        #endregion
 
+        #region 写入Xml文件
         private void btnWriteXml_Click(object sender, EventArgs e)
         {
             MeasureFile mf = new MeasureFile();
@@ -690,6 +693,7 @@ namespace HOZProject
 
             
         }
+        #endregion
 
         #region SEM模式
         private void btnSEM_Click(object sender, EventArgs e)
@@ -1256,5 +1260,20 @@ namespace HOZProject
         {
             iSEM.ImageFrozen();
         }
+
+        private void btnExeEly_Click(object sender, EventArgs e)
+        {
+            iSEM.CmdFIBLoadELY(@"E:\HOZ\MillStep2.ely");
+        }
+
+        private void btnExeEly2_Click(object sender, EventArgs e)
+        {
+            iSEM.CmdFIBLoadELY(@"E:\HOZ\MillStep4.ely");
+        }
+
+        private void btnFIBStatus_Click(object sender, EventArgs e)
+        {
+            btnFIBStatus.Text = iSEM.GetFIBApiStatus().ToString();
+        }
     }
 }

+ 6 - 0
SmartSEMControl/HardwareInterface.cs

@@ -184,6 +184,12 @@ namespace SmartSEMControl
         //连接状态
         Boolean ConnectStatus();
 
+        //FIB API工作状态
+        float GetFIBApiStatus();
+
+        //加载执行.ely文件
+        Boolean CmdFIBLoadELY(String _ELYFullFileName);
+
         //清除控件
         Boolean Dispose();
 

+ 47 - 0
SmartSEMControl/SmartSEM.cs

@@ -10,12 +10,18 @@ using System.Threading.Tasks;
 
 using APILib;
 using System.Threading;
+using System.IO;
 
 namespace SmartSEMControl
 {
     //可能遇到的错误提示部分??在log加入之后添加
     class SmartSEM : ISEMControl
     {
+        #region 固定参数
+        private String ELYPATH= @"C:\ProgramData\Carl Zeiss\SmartFIB\API\Drop\";
+        private String ELYFILENAME = "ApiLayout.ely";
+        #endregion
+
         #region 模拟参数
         //放大缩小
         private String AP_MAG = "AP_MAG";
@@ -105,6 +111,9 @@ namespace SmartSEMControl
         private String DP_FIB_MODE = "DP_FIB_MODE";
         //FIB_IMAGING
         private String DP_FIB_IMAGING = "DP_FIB_IMAGING";
+
+        //FIB状态
+        private String DP_SMARTFIB_API_STATUS = "DP_SMARTFIB_API_STATUS";
         #endregion
 
         #region 命令
@@ -132,6 +141,9 @@ namespace SmartSEMControl
         private String CMD_FIB_MODE_DRIFT_SEM = "CMD_FIB_MODE_DRIFT_SEM";
         private String CMD_FIB_MODE_DRIFT_FIB = "CMD_FIB_MODE_DRIFT_FIB";
         private String CMD_FIB_MODE_ARGON = "CMD_FIB_MODE_ARGON";
+
+        //FIB加载.ely文件命令
+        private String CMD_SMARTFIB_LOAD_ELY = "CMD_SMARTFIB_LOAD_ELY";
         #endregion
 
         #region 宏文件命令
@@ -1526,6 +1538,41 @@ namespace SmartSEMControl
         }
         #endregion
 
+        #region FIB工作状态
+        public float GetFIBApiStatus()
+        {
+            float ret = 0;
+            if (ReadParams(DP_SMARTFIB_API_STATUS, ref ret))
+            {
+                return ret;
+            }
+            else
+            {
+                return float.NaN;
+            }
+        }
+        #endregion
+
+        #region FIB加载.ely文件
+        public Boolean CmdFIBLoadELY(String _ELYFullFileName)
+        {
+            if (File.Exists(_ELYFullFileName) && Directory.Exists(ELYPATH))
+            {
+                //移动文件
+                Path.GetFullPath(_ELYFullFileName);
+                if(ELYPATH.IndexOf(_ELYFullFileName)<0)
+                {
+                    File.Copy(_ELYFullFileName, ELYPATH + ELYFILENAME, true);
+                }
+                return ExecuteCmd(CMD_SMARTFIB_LOAD_ELY);
+            }
+            else
+            {
+                return false;
+            }
+        }
+        #endregion
+
         //PT针插入
         public Boolean InsertPT()
         {