| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- using FEIApiControl;
- using OTSCLRINTERFACE;
- using OTSModelSharp.ServiceCenter;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSMeasureApp.ServiceCenter.PicoSmart
- {
- class PicoSmartEDSController : EDSController
- {
- public PicoSmartEDSController(string deviceType, int expectcount, bool ifautoid, string knownelements) : base(deviceType, expectcount, ifautoid, knownelements)
- {
- }
- //public PicoSmartApi_cshape m_api = null;
- //private int AnalyExpCount = 100000;
- //private string strResolution = "";
- //private int width = 0;
- //private int height = 0;
- //public PicoSmartEDSController(int MaxCounts)
- //{
- // m_api = PicoSmartSemController.GetApiClassInstance();
- // AnalyExpCount = MaxCounts;
- // Connect();
- //}
- //public bool CollectSpectrum(uint a_nXRayAQTime, ref uint[] a_XrayData)
- //{
- // return false;
- //}
- //public bool Connect()
- //{
- // string FEIIP = FileHelper.GetXMLInformations("FEIIP");
- // string FEIPORT = FileHelper.GetXMLInformations("FEIPORT");
- // if (FEIIP == "" || FEIPORT == "")
- // {
- // NLog.LogManager.GetCurrentClassLogger().Error("FEI电镜端口配置为空!");
- // return false;
- // }
- // m_api.set_ip(FEIIP);
- // m_api.set_port(int.Parse( FEIPORT));
- // if (m_api.isStart()==1)
- // {
- // return true;
- // }
- // if (m_api.start() == 1)
- // {
- // return true;
- // }
- // return false;
- //}
- //public EDSTYPE GetEDSType()
- //{
- // return EDSTYPE.PICOSMART;
- //}
- //public int GetExpectCount()
- //{
- // return AnalyExpCount;
- //}
- //public bool GetIfDelayQuantify()
- //{
- // return false;
- //}
- //public bool GetXRayByFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
- //{
- // return false;
- //}
- //public bool GetXRayByParts(List<COTSParticleClr> a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo)
- //{
- // return false;
- //}
- //public bool QuantifyXrayByPart(COTSParticleClr part)
- //{
- // return false;
- //}
- //public void SetFilterKeyEleNames(List<string> KeyNameList)
- //{
- //}
- //public void SetResolution(int resolutionWidth, int resolutionHeight)
- //{
- //}
- //bool IEDSController.GetXRayByExpandFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
- //{
- // return true;
- //}
- //private bool SetAnalyExpCount(int MaxCounts)
- //{
- // AnalyExpCount = MaxCounts;
- // return true;
- //}
- //void IEDSController.SetQuantifiCationParam(bool IfAutoId, string knownElements)
- //{
- // //throw new NotImplementedException();
- //}
- }
- }
|