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 a_listParticles, double a_nXRayAQTime, bool a_bElementInfo) //{ // return false; //} //public bool GetXRayByParts(List a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo) //{ // return false; //} //public bool QuantifyXrayByPart(COTSParticleClr part) //{ // return false; //} //public void SetFilterKeyEleNames(List KeyNameList) //{ //} //public void SetResolution(int resolutionWidth, int resolutionHeight) //{ //} //bool IEDSController.GetXRayByExpandFeatures(List 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(); //} } }