|
@@ -1956,6 +1956,7 @@ namespace MeasureThread
|
|
//add by sun 2020-12-17 解决3大类样品FIB下亮度过白导致无法识别问题
|
|
//add by sun 2020-12-17 解决3大类样品FIB下亮度过白导致无法识别问题
|
|
float m_TempBrightness = 50.0f;
|
|
float m_TempBrightness = 50.0f;
|
|
float m_TempContrast = 30.0f;
|
|
float m_TempContrast = 30.0f;
|
|
|
|
+
|
|
if (m_measureFile.MParam.SampleName == "3")
|
|
if (m_measureFile.MParam.SampleName == "3")
|
|
{
|
|
{
|
|
m_TempBrightness = 50f;
|
|
m_TempBrightness = 50f;
|
|
@@ -2211,7 +2212,7 @@ namespace MeasureThread
|
|
//add by sun 2020-12-16 解决第5/6类样品 6000倍对焦不好问题
|
|
//add by sun 2020-12-16 解决第5/6类样品 6000倍对焦不好问题
|
|
if ( m_measureFile.MParam.SampleName == "3")
|
|
if ( m_measureFile.MParam.SampleName == "3")
|
|
{
|
|
{
|
|
- iSEM.SetReduced(402, 128, 400, 256);
|
|
|
|
|
|
+ iSEM.SetReduced(402, 128, 480, 450);
|
|
}else
|
|
}else
|
|
{
|
|
{
|
|
iSEM.SetReduced(402, 128, 340, 256);
|
|
iSEM.SetReduced(402, 128, 340, 256);
|
|
@@ -2226,6 +2227,7 @@ namespace MeasureThread
|
|
cycle_time = iSEM.GetCycleTime();
|
|
cycle_time = iSEM.GetCycleTime();
|
|
Thread.Sleep(100 + Convert.ToInt32(cycle_time));
|
|
Thread.Sleep(100 + Convert.ToInt32(cycle_time));
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
//放大到6000倍
|
|
//放大到6000倍
|
|
iSEM.SetMagnification(magMax / 2);
|
|
iSEM.SetMagnification(magMax / 2);
|
|
@@ -2241,6 +2243,15 @@ namespace MeasureThread
|
|
}
|
|
}
|
|
LogManager.AddHardwareLog("========测量线程:开始自动聚焦--6000倍!", true);
|
|
LogManager.AddHardwareLog("========测量线程:开始自动聚焦--6000倍!", true);
|
|
|
|
|
|
|
|
+ if (m_measureFile.MParam.SampleName == "3")
|
|
|
|
+ {
|
|
|
|
+ //add by zjx 2020-12-18 修改亮度对比度 50 29 更成 50 30
|
|
|
|
+ iSEM.SetBrightness(50.0f); //50.0f
|
|
|
|
+ Thread.Sleep(200);
|
|
|
|
+ iSEM.SetContrast(30.0f); //30.0f
|
|
|
|
+ Thread.Sleep(200);
|
|
|
|
+ //add by zjx 2020-12-18 修改亮度对比度 50 29 更成 50 30 end
|
|
|
|
+ }
|
|
|
|
|
|
//自动对焦
|
|
//自动对焦
|
|
if (!ImageFocus1(true))
|
|
if (!ImageFocus1(true))
|
|
@@ -2596,8 +2607,11 @@ namespace MeasureThread
|
|
//第一个孔的测试过程
|
|
//第一个孔的测试过程
|
|
public bool FirstHole()
|
|
public bool FirstHole()
|
|
{
|
|
{
|
|
- //add by sun 2020-12-17 不同样品电压、电流不一致,应设置灵活。123456类电压2000V电流200pA,7类5000V 500pA,能谱 7000V 500pA
|
|
|
|
- LogManager.AddHardwareLog("测量线程:第一孔=====设置拍照电压 123456类电压2000V电流200pA,7类5000V 500pA,能谱 7000V 500pA 目前是第 " + m_measureFile.MParam.SampleName + " 类!", true);
|
|
|
|
|
|
+ // add by zjx 2020-12-18 为了测试只做能谱部分
|
|
|
|
+ if (m_measureFile.MParam.IsonlyEDSForDebug == true)
|
|
|
|
+ {
|
|
|
|
+ //add by sun 2020-12-17 不同样品电压、电流不一致,应设置灵活。123456类电压2000V电流200pA,7类5000V 500pA,能谱 7000V 500pA
|
|
|
|
+ LogManager.AddHardwareLog("测量线程:第一孔=====设置拍照电压 123456类电压2000V电流200pA,7类5000V 500pA,能谱 7000V 500pA 目前是第 " + m_measureFile.MParam.SampleName + " 类!", true);
|
|
if (!SetVoltageAndIPROBE())
|
|
if (!SetVoltageAndIPROBE())
|
|
{
|
|
{
|
|
LogManager.AddHardwareLog("测量线程:第一孔=====设置电压电流失败!目前是第 " + m_measureFile.MParam.SampleName + " 类!", true);
|
|
LogManager.AddHardwareLog("测量线程:第一孔=====设置电压电流失败!目前是第 " + m_measureFile.MParam.SampleName + " 类!", true);
|
|
@@ -2777,7 +2791,8 @@ namespace MeasureThread
|
|
SendMsg("1-40");
|
|
SendMsg("1-40");
|
|
LogManager.AddHardwareLog("测量线程:第一个孔的测试过程-18.自动层高分析结束!", true);
|
|
LogManager.AddHardwareLog("测量线程:第一个孔的测试过程-18.自动层高分析结束!", true);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+ //add by zjx 2020-12-18 为了测试只做能谱部分 end
|
|
//19.能谱分析
|
|
//19.能谱分析
|
|
if (m_measureFile.MParam.EDS)
|
|
if (m_measureFile.MParam.EDS)
|
|
{
|
|
{
|
|
@@ -3172,6 +3187,12 @@ namespace MeasureThread
|
|
m_TempBrightness = 48.0f;
|
|
m_TempBrightness = 48.0f;
|
|
m_TempContrast = 29.0f;
|
|
m_TempContrast = 29.0f;
|
|
}
|
|
}
|
|
|
|
+ //add by sun 2020-12-18 解决1类样品拉直太白造成无法拉直问题
|
|
|
|
+ if (m_measureFile.MParam.SampleName == "1")
|
|
|
|
+ {
|
|
|
|
+ m_TempBrightness = 50.0f;
|
|
|
|
+ m_TempContrast = 29.0f;
|
|
|
|
+ }
|
|
//add by sun 2020-12-17 解决3大类样品FIB下亮度过白导致无法识别问题
|
|
//add by sun 2020-12-17 解决3大类样品FIB下亮度过白导致无法识别问题
|
|
iSEM.SetAutoVideoOff();
|
|
iSEM.SetAutoVideoOff();
|
|
Thread.Sleep(200);
|
|
Thread.Sleep(200);
|
|
@@ -5701,7 +5722,7 @@ namespace MeasureThread
|
|
#region 能谱所有参数
|
|
#region 能谱所有参数
|
|
//全局只有一个Extender
|
|
//全局只有一个Extender
|
|
static ExtenderInterface factoryExtender = ExtenderInterface.Instance;
|
|
static ExtenderInterface factoryExtender = ExtenderInterface.Instance;
|
|
- IExtenderControl iExtender = factoryExtender.IExtender;
|
|
|
|
|
|
+ IExtenderControl iExtender;
|
|
MeasureDB m_MeasDB = null;
|
|
MeasureDB m_MeasDB = null;
|
|
int m_nXrayId = 0;
|
|
int m_nXrayId = 0;
|
|
const String ImageNameEDS = @"EDSImage.tif"; //EDS能谱图片
|
|
const String ImageNameEDS = @"EDSImage.tif"; //EDS能谱图片
|
|
@@ -5720,6 +5741,7 @@ namespace MeasureThread
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
|
|
+ iExtender = factoryExtender.IExtender;
|
|
//XrayID记录
|
|
//XrayID记录
|
|
LogManager.AddHardwareLog("程序进入EDS测量!", true);
|
|
LogManager.AddHardwareLog("程序进入EDS测量!", true);
|
|
|
|
|