|
@@ -44,7 +44,7 @@ namespace OTSIncAReportGrids.OTSIncAReportGridsFuncation
|
|
|
|
|
|
#region 定义变量
|
|
|
//电镜设置对象
|
|
|
- //public NSOTSController.COTSControlFunExport m_cfun = null;
|
|
|
+ public NSOTSController.COTSControlFunExport m_cfun = null;
|
|
|
|
|
|
//为了加快颗粒列表抠图的速度,这里保存一个全局变量
|
|
|
public List<Field> m_list_COTSFieldMgrClr = null;
|
|
@@ -175,11 +175,11 @@ namespace OTSIncAReportGrids.OTSIncAReportGridsFuncation
|
|
|
{
|
|
|
if (!m_SEMConnectionState)
|
|
|
{
|
|
|
- //m_cfun = new NSOTSController.COTSControlFunExport();//重新new一下试试呢,不new不好使 It's better to reinitialize, but it's not good to uninitialize
|
|
|
- ////和电镜建立通讯连接
|
|
|
- //m_SEMConnectionState = m_cfun.ConncetSem();
|
|
|
- /////获取当前电镜的ID号
|
|
|
- //m_SEM_ID = m_cfun.GetSemType();
|
|
|
+ m_cfun = new NSOTSController.COTSControlFunExport();//重新new一下试试呢,不new不好使 It's better to reinitialize, but it's not good to uninitialize
|
|
|
+ //和电镜建立通讯连接
|
|
|
+ m_SEMConnectionState = m_cfun.ConncetSem();
|
|
|
+ ///获取当前电镜的ID号
|
|
|
+ m_SEM_ID = m_cfun.GetSemType();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -204,7 +204,7 @@ namespace OTSIncAReportGrids.OTSIncAReportGridsFuncation
|
|
|
|
|
|
if (m_SEMConnectionState)
|
|
|
{
|
|
|
- //m_cfun.GetSemPositionXY(ref ls_PositionX, ref ls_PositionY, ref ls_PositionR);
|
|
|
+ m_cfun.GetSemPositionXY(ref ls_PositionX, ref ls_PositionY, ref ls_PositionR);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -212,7 +212,7 @@ namespace OTSIncAReportGrids.OTSIncAReportGridsFuncation
|
|
|
|
|
|
if (m_SEMConnectionState)
|
|
|
{
|
|
|
- //m_cfun.MoveSEMToPoint(in_PositionX, in_PositionY, ls_PositionR);
|
|
|
+ m_cfun.MoveSEMToPoint(in_PositionX, in_PositionY, ls_PositionR);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -229,7 +229,7 @@ namespace OTSIncAReportGrids.OTSIncAReportGridsFuncation
|
|
|
//}
|
|
|
//m_cfun.FreeDll();
|
|
|
|
|
|
- //m_SEMConnectionState = false;
|
|
|
+ m_SEMConnectionState = false;
|
|
|
}
|
|
|
|
|
|
#endregion
|