@wang_qi0307 5 anos atrás
pai
commit
caa354ccf9

+ 28 - 29
HOZProject/FormUnitControl.Designer.cs

@@ -103,6 +103,8 @@
             this.btnFIB = new System.Windows.Forms.Button();
             this.panelSEM = new System.Windows.Forms.Panel();
             this.panelFIB = new System.Windows.Forms.Panel();
+            this.btnFIBStatus = new System.Windows.Forms.Button();
+            this.btnExeEly2 = new System.Windows.Forms.Button();
             this.btnExeEly = new System.Windows.Forms.Button();
             this.btnFIBAstigmatismYSet = new System.Windows.Forms.Button();
             this.txtFIBAstigmatismY = new System.Windows.Forms.TextBox();
@@ -159,9 +161,7 @@
             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.MeasureTest = new System.Windows.Forms.Button();            this.panelControl.SuspendLayout();
+            this.panelControl.SuspendLayout();
             this.panelSEM.SuspendLayout();
             this.panelFIB.SuspendLayout();
             this.panelStage.SuspendLayout();
@@ -1077,10 +1077,34 @@
             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.Size = new System.Drawing.Size(763, 311);
             this.panelFIB.TabIndex = 50;
             this.panelFIB.Visible = false;
             // 
+            // 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);
+            // 
+            // 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);
+            // 
             // btnExeEly
             // 
             this.btnExeEly.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1753,30 +1777,6 @@
             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);
@@ -1931,7 +1931,6 @@
         private System.Windows.Forms.PictureBox pictureBox1;
         private System.Windows.Forms.Button btnFrozen;
         private System.Windows.Forms.Button btnLive;
-		private System.Windows.Forms.Button MeasureTest;
         private System.Windows.Forms.Button btnExeEly;
         private System.Windows.Forms.Button btnExeEly2;
         private System.Windows.Forms.Button btnFIBStatus;

+ 1 - 24
SmartSEMControl/HardwareInterface.cs

@@ -33,7 +33,7 @@ namespace SmartSEMControl
         }
 
         //其他使用的成员变量
-        private ISEMControl m_iSEM = new SmartSEM(); //成员变量
+        private readonly ISEMControl m_iSEM = new SmartSEM(); //成员变量
 
         public ISEMControl ISEM
         {
@@ -194,27 +194,4 @@ namespace SmartSEMControl
         Boolean Dispose();
 
     }
-
-    interface FIBControl
-    {
-        //FIB的控制
-
-    }
-
-    interface IPtControl
-    {
-       
-    }
-
-    interface StageControl
-    {
-        //样品台控制
-
-    }
-
-    interface CommonMsg
-    {
-        //通用的信息
-
-    }
 }

+ 63 - 63
SmartSEMControl/SmartSEM.cs

@@ -107,136 +107,136 @@ namespace SmartSEMControl
         #endregion
 
         #region 固定参数
-        private String ELYPATH= @"C:\ProgramData\Carl Zeiss\SmartFIB\API\Drop\";
-        private String ELYFILENAME = "ApiLayout.ely";
+        private readonly String ELYPATH = @"C:\ProgramData\Carl Zeiss\SmartFIB\API\Drop\";
+        private readonly String ELYFILENAME = "ApiLayout.ely";
         #endregion
 
         #region 模拟参数
         //放大缩小
-        private String AP_MAG = "AP_MAG";
+        private readonly String AP_MAG = "AP_MAG";
         //焦距
-        private String AP_WD = "AP_WD";
+        private readonly String AP_WD = "AP_WD";
         //亮度
-        private String AP_BRIGHTNESS = "AP_BRIGHTNESS";
+        private readonly String AP_BRIGHTNESS = "AP_BRIGHTNESS";
         //对比度
-        private String AP_CONTRAST = "AP_CONTRAST";
+        private readonly String AP_CONTRAST = "AP_CONTRAST";
         //亮度目标
-        private String AP_AUTO_BRIGHT = "AP_AUTO_BRIGHT";
+        private readonly String AP_AUTO_BRIGHT = "AP_AUTO_BRIGHT";
         //对比度目标
-        private String AP_AUTO_CONTRAST = "AP_AUTO_CONTRAST";
+        private readonly String AP_AUTO_CONTRAST = "AP_AUTO_CONTRAST";
         //消像散X轴
-        private String AP_STIG_X = "AP_STIG_X";
+        private readonly String AP_STIG_X = "AP_STIG_X";
         //消像散Y轴
-        private String AP_STIG_Y = "AP_STIG_Y";
+        private readonly String AP_STIG_Y = "AP_STIG_Y";
         //角度补偿
-        private String AP_TILT_ANGLE = "AP_TILT_ANGLE";
+        private readonly String AP_TILT_ANGLE = "AP_TILT_ANGLE";
         //SEM移动X
-        private String AP_BEAMSHIFT_X = "AP_BEAMSHIFT_X";
+        private readonly String AP_BEAMSHIFT_X = "AP_BEAMSHIFT_X";
         //SEM移动Y
-        private String AP_BEAMSHIFT_Y = "AP_BEAMSHIFT_Y";
+        private readonly String AP_BEAMSHIFT_Y = "AP_BEAMSHIFT_Y";
         //X轴移动到
-        private String AP_STAGE_GOTO_X = "AP_STAGE_GOTO_X";
+        private readonly String AP_STAGE_GOTO_X = "AP_STAGE_GOTO_X";
         //Y轴移动到
-        private String AP_STAGE_GOTO_Y = "AP_STAGE_GOTO_Y";
+        private readonly String AP_STAGE_GOTO_Y = "AP_STAGE_GOTO_Y";
         //Z轴移动到
-        private String AP_STAGE_GOTO_Z = "AP_STAGE_GOTO_Z";
+        private readonly String AP_STAGE_GOTO_Z = "AP_STAGE_GOTO_Z";
         //T轴移动到
-        private String AP_STAGE_GOTO_T = "AP_STAGE_GOTO_T";
+        private readonly String AP_STAGE_GOTO_T = "AP_STAGE_GOTO_T";
         //R轴移动到
-        private String AP_STAGE_GOTO_R = "AP_STAGE_GOTO_R";
+        private readonly String AP_STAGE_GOTO_R = "AP_STAGE_GOTO_R";
         //M轴移动到
-        private String AP_STAGE_GOTO_M = "AP_STAGE_GOTO_M";
+        private readonly String AP_STAGE_GOTO_M = "AP_STAGE_GOTO_M";
         //Scan Rotate角度
-        private String AP_SCANROTATION = "AP_SCANROTATION";
+        private readonly String AP_SCANROTATION = "AP_SCANROTATION";
         //像素大小
-        private String AP_PIXEL_SIZE = "AP_PIXEL_SIZE";
+        private readonly String AP_PIXEL_SIZE = "AP_PIXEL_SIZE";
         //X轴坐标
-        private String AP_STAGE_AT_X = "AP_STAGE_AT_X";
+        private readonly String AP_STAGE_AT_X = "AP_STAGE_AT_X";
         //Y轴坐标
-        private String AP_STAGE_AT_Y = "AP_STAGE_AT_Y";
+        private readonly String AP_STAGE_AT_Y = "AP_STAGE_AT_Y";
         //Z轴坐标
-        private String AP_STAGE_AT_Z = "AP_STAGE_AT_Z";
+        private readonly String AP_STAGE_AT_Z = "AP_STAGE_AT_Z";
         //T轴坐标
-        private String AP_STAGE_AT_T = "AP_STAGE_AT_T";
+        private readonly String AP_STAGE_AT_T = "AP_STAGE_AT_T";
         //R轴坐标
-        private String AP_STAGE_AT_R = "AP_STAGE_AT_R";
+        private readonly String AP_STAGE_AT_R = "AP_STAGE_AT_R";
         //M轴坐标
-        private String AP_STAGE_AT_M = "AP_STAGE_AT_M";
+        private readonly String AP_STAGE_AT_M = "AP_STAGE_AT_M";
 
         //FIB缩放
-        private String AP_FIB_MAGNIFICATION = "AP_FIB_MAGNIFICATION";
+        private readonly String AP_FIB_MAGNIFICATION = "AP_FIB_MAGNIFICATION";
         //FIB焦距
-        private String AP_FIB_OBJECTIVE_POTENTIAL = "AP_FIB_OBJECTIVE_POTENTIAL";
+        private readonly String AP_FIB_OBJECTIVE_POTENTIAL = "AP_FIB_OBJECTIVE_POTENTIAL";
         //FIB消像散X
-        private String AP_FIB_STIGMATOR_X = "AP_FIB_STIGMATOR_X";
+        private readonly String AP_FIB_STIGMATOR_X = "AP_FIB_STIGMATOR_X";
         //FIB消像散Y
-        private String AP_FIB_STIGMATOR_Y = "AP_FIB_STIGMATOR_Y";
+        private readonly String AP_FIB_STIGMATOR_Y = "AP_FIB_STIGMATOR_Y";
         //FIB光束移动X
-        private String AP_FIB_BEAM_SHIFT_X = "AP_FIB_BEAM_SHIFT_X";
+        private readonly String AP_FIB_BEAM_SHIFT_X = "AP_FIB_BEAM_SHIFT_X";
         //FIB光束移动Y
-        private String AP_FIB_BEAM_SHIFT_Y = "AP_FIB_BEAM_SHIFT_Y";
+        private readonly String AP_FIB_BEAM_SHIFT_Y = "AP_FIB_BEAM_SHIFT_Y";
         #endregion
 
         #region 数字参数
         //Scan Rotate开关
-        private String DP_SCAN_ROT = "DP_SCAN_ROT";
+        private readonly String DP_SCAN_ROT = "DP_SCAN_ROT";
         //取消电子束校正
-        private String DP_TILT_CORRECTION = "DP_TILT_CORRECTION";
+        private readonly String DP_TILT_CORRECTION = "DP_TILT_CORRECTION";
         //自动亮度对比度
-        private String DP_AUTO_VIDEO = "DP_AUTO_VIDEO";
+        private readonly String DP_AUTO_VIDEO = "DP_AUTO_VIDEO";
         //图像解冻
-        private String DP_FROZEN = "DP_FROZEN";
+        private readonly String DP_FROZEN = "DP_FROZEN";
         //图像类型切换
-        private String DP_DETECTOR_TYPE = "DP_DETECTOR_TYPE";
+        private readonly String DP_DETECTOR_TYPE = "DP_DETECTOR_TYPE";
         //图像大小
-        private String DP_IMAGE_STORE = "DP_IMAGE_STORE";
+        private readonly String DP_IMAGE_STORE = "DP_IMAGE_STORE";
 
         //样品台状态
-        private String DP_STAGE_IS = "DP_STAGE_IS";
+        private readonly String DP_STAGE_IS = "DP_STAGE_IS";
         //自动函数状态
-        private String DP_AUTO_FUNCTION = "DP_AUTO_FUNCTION";
+        private readonly String DP_AUTO_FUNCTION = "DP_AUTO_FUNCTION";
 
         //FIB模式
-        private String DP_FIB_MODE = "DP_FIB_MODE";
+        private readonly String DP_FIB_MODE = "DP_FIB_MODE";
         //FIB_IMAGING
-        private String DP_FIB_IMAGING = "DP_FIB_IMAGING";
+        private readonly String DP_FIB_IMAGING = "DP_FIB_IMAGING";
 
         //FIB状态
-        private String DP_SMARTFIB_API_STATUS = "DP_SMARTFIB_API_STATUS";
+        private readonly String DP_SMARTFIB_API_STATUS = "DP_SMARTFIB_API_STATUS";
         #endregion
 
         #region 命令
         //开启电压
-        private String CMD_BEAM_ON = "CMD_BEAM_ON";
+        private readonly String CMD_BEAM_ON = "CMD_BEAM_ON";
         //关闭电压
-        private String CMD_EHT_OFF = "CMD_EHT_OFF";
+        private readonly String CMD_EHT_OFF = "CMD_EHT_OFF";
         //自动对焦1
-        private String CMD_AUTO_FOCUS_COARSE = "CMD_AUTO_FOCUS_COARSE";
+        private readonly String CMD_AUTO_FOCUS_COARSE = "CMD_AUTO_FOCUS_COARSE";
         //自动对焦2
-        private String CMD_AUTO_FOCUS_FINE = "CMD_AUTO_FOCUS_FINE";
+        private readonly String CMD_AUTO_FOCUS_FINE = "CMD_AUTO_FOCUS_FINE";
         //自动消像散
-        private String CMD_AUTO_STIG = "CMD_AUTO_STIG";
+        private readonly String CMD_AUTO_STIG = "CMD_AUTO_STIG";
         //样品台急停
-        private String CMD_STAGE_ABORT = "CMD_STAGE_ABORT";
+        private readonly String CMD_STAGE_ABORT = "CMD_STAGE_ABORT";
         //FIB模式选择
-        private String CMD_FIB_MODE_SEM = "CMD_FIB_MODE_SEM";
-        private String CMD_FIB_MODE_FIB = "CMD_FIB_MODE_FIB";
-        private String CMD_FIB_MODE_MILL = "CMD_FIB_MODE_MILL";
-        private String CMD_FIB_MODE_SEM_FIB = "CMD_FIB_MODE_SEM_FIB";
-        private String CMD_FIB_MODE_MILL_SEM = "CMD_FIB_MODE_MILL_SEM";
-        private String CMD_FIB_MODE_EXT = "CMD_FIB_MODE_EXT";
-        private String CMD_FIB_MODE_EXT_SEM = "CMD_FIB_MODE_EXT_SEM";
-        private String CMD_FIB_MODE_ARGON_SEM = "CMD_FIB_MODE_ARGON_SEM";
-        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";
+        private readonly String CMD_FIB_MODE_SEM = "CMD_FIB_MODE_SEM";
+        private readonly String CMD_FIB_MODE_FIB = "CMD_FIB_MODE_FIB";
+        private readonly String CMD_FIB_MODE_MILL = "CMD_FIB_MODE_MILL";
+        private readonly String CMD_FIB_MODE_SEM_FIB = "CMD_FIB_MODE_SEM_FIB";
+        private readonly String CMD_FIB_MODE_MILL_SEM = "CMD_FIB_MODE_MILL_SEM";
+        private readonly String CMD_FIB_MODE_EXT = "CMD_FIB_MODE_EXT";
+        private readonly String CMD_FIB_MODE_EXT_SEM = "CMD_FIB_MODE_EXT_SEM";
+        private readonly String CMD_FIB_MODE_ARGON_SEM = "CMD_FIB_MODE_ARGON_SEM";
+        private readonly String CMD_FIB_MODE_DRIFT_SEM = "CMD_FIB_MODE_DRIFT_SEM";
+        private readonly String CMD_FIB_MODE_DRIFT_FIB = "CMD_FIB_MODE_DRIFT_FIB";
+        private readonly String CMD_FIB_MODE_ARGON = "CMD_FIB_MODE_ARGON";
 
         //FIB加载.ely文件命令
-        private String CMD_SMARTFIB_LOAD_ELY = "CMD_SMARTFIB_LOAD_ELY";
+        private readonly String CMD_SMARTFIB_LOAD_ELY = "CMD_SMARTFIB_LOAD_ELY";
         #endregion
 
         #region 宏文件命令
-        private String MCF_FILENAME = "MCF_";
+        private readonly String MCF_FILENAME = "MCF_";
         #endregion
 
         #region APILib