|
@@ -109,12 +109,12 @@ namespace OTSModelSharp
|
|
|
|
|
|
pSEMCtrl.SetMagnification(dMag);
|
|
|
pSEMCtrl.SetWorkingDistance(dWorkDis);
|
|
|
- pSEMCtrl.SetSemBrightness(bri);
|
|
|
- pSEMCtrl.SetSemContrast(contra);
|
|
|
+ //pSEMCtrl.SetSemBrightness(bri);
|
|
|
+ //pSEMCtrl.SetSemContrast(contra);
|
|
|
log.Warn("set magnification " + dMag);
|
|
|
log.Warn("set wd "+ dWorkDis);
|
|
|
- log.Warn("set brightness "+bri);
|
|
|
- log.Warn("set contrast "+contra);
|
|
|
+ //log.Warn("set brightness "+bri);
|
|
|
+ //log.Warn("set contrast "+contra);
|
|
|
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -128,18 +128,7 @@ namespace OTSModelSharp
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
- bool SetSEMExteralOn()
|
|
|
- {
|
|
|
- var pSEMCtrl = m_SemHardwareMgr;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- log.Warn("Set Scan Exteral on!");
|
|
|
-
|
|
|
- pSEMCtrl.SetScanExternal(true);
|
|
|
-
|
|
|
- return true;
|
|
|
- }
|
|
|
+
|
|
|
// set SEM external off
|
|
|
bool SetSEMExteralOff()
|
|
|
{
|
|
@@ -612,7 +601,7 @@ namespace OTSModelSharp
|
|
|
return;
|
|
|
}
|
|
|
var pSEMDataGnr = new CSEMDataGnr();
|
|
|
- log.Info("Get Kv, Brightness and Contrast!");
|
|
|
+ log.Info("Get current Kv, Brightness and Contrast!");
|
|
|
GetSEMDataGnrFromHw(ref pSEMDataGnr);
|
|
|
|
|
|
|
|
@@ -823,6 +812,12 @@ namespace OTSModelSharp
|
|
|
//start db save
|
|
|
StartSaveFileThread(ref curFld);
|
|
|
|
|
|
+ // record
|
|
|
+ pStatus.AddCompletedFieldCenter(curFld.GetOTSPosition());
|
|
|
+
|
|
|
+
|
|
|
+ pStatus.ComputeTime(OTS_MSR_TIME_TYPE.STOPPED);
|
|
|
+
|
|
|
SendFieldParticlesInfoToGUI(curFld, m_Sample.GetMsrStatus());
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -1387,10 +1382,7 @@ namespace OTSModelSharp
|
|
|
|
|
|
log.Info("Send field data to screen!");
|
|
|
|
|
|
- pStatus.AddCompletedFieldCenter(curFld.GetOTSPosition());
|
|
|
- //Field Data
|
|
|
- // record end time
|
|
|
- pStatus.ComputeTime(OTS_MSR_TIME_TYPE.STOPPED);
|
|
|
+
|
|
|
ST_MSTMsg MsgFieldEnd = new ST_MSTMsg(m_Sample,curFld);
|
|
|
MsgFieldEnd.InitFieldDataMsg();
|
|
|
|