|
@@ -10,6 +10,7 @@ using System.Collections;
|
|
|
using OTSDataType;
|
|
|
using OTSModelSharp;
|
|
|
using static OTSDataType.otsdataconst;
|
|
|
+using NSOTSController;
|
|
|
|
|
|
namespace OTSMeasureApp
|
|
|
{
|
|
@@ -3911,6 +3912,9 @@ namespace OTSMeasureApp
|
|
|
public bool SetSEMDATAMParameter(double magnification, double semWorkingDistance)
|
|
|
{
|
|
|
#region 获取电镜参数
|
|
|
+ //电镜设置对象
|
|
|
+ //COTSControlFunExport cfun = new COTSControlFunExport();
|
|
|
+
|
|
|
//获取Field操作类对象
|
|
|
if (m_SEMDATAFieldManage == null)
|
|
|
{
|
|
@@ -3924,8 +3928,19 @@ namespace OTSMeasureApp
|
|
|
bool mFlag = false;
|
|
|
bool wFlag = false;
|
|
|
//放大倍数
|
|
|
+ //mFlag = cfun.SetSemMagnification(magnification);
|
|
|
+ //wFlag = cfun.SetSemWorkingDistance(semWorkingDistance);
|
|
|
+ //if (wFlag)
|
|
|
+ //{
|
|
|
+ // MessageBox.Show(cfun.GetMagnification().ToString());
|
|
|
+ //}
|
|
|
mFlag = m_SEMDATAFieldManage.SetSEMMagnificationParameter(magnification);
|
|
|
wFlag = m_SEMDATAFieldManage.SetSEMWorkingDistanceParameter(semWorkingDistance);
|
|
|
+ if (wFlag)
|
|
|
+ {
|
|
|
+ MessageBox.Show(m_SEMDATAFieldManage.GetSEMMagAndWDParameter().ToString());
|
|
|
+
|
|
|
+ }
|
|
|
//关闭电镜连接
|
|
|
CloseSEM();
|
|
|
if (mFlag || wFlag)
|