PicoSmartEDSController.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. using FEIApiControl;
  2. using OTSCLRINTERFACE;
  3. using OTSModelSharp.ServiceCenter;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OTSMeasureApp.ServiceCenter.PicoSmart
  10. {
  11. class PicoSmartEDSController : EDSController
  12. {
  13. public PicoSmartEDSController(string deviceType, int expectcount, bool ifautoid, string knownelements) : base(deviceType, expectcount, ifautoid, knownelements)
  14. {
  15. }
  16. //public PicoSmartApi_cshape m_api = null;
  17. //private int AnalyExpCount = 100000;
  18. //private string strResolution = "";
  19. //private int width = 0;
  20. //private int height = 0;
  21. //public PicoSmartEDSController(int MaxCounts)
  22. //{
  23. // m_api = PicoSmartSemController.GetApiClassInstance();
  24. // AnalyExpCount = MaxCounts;
  25. // Connect();
  26. //}
  27. //public bool CollectSpectrum(uint a_nXRayAQTime, ref uint[] a_XrayData)
  28. //{
  29. // return false;
  30. //}
  31. //public bool Connect()
  32. //{
  33. // string FEIIP = FileHelper.GetXMLInformations("FEIIP");
  34. // string FEIPORT = FileHelper.GetXMLInformations("FEIPORT");
  35. // if (FEIIP == "" || FEIPORT == "")
  36. // {
  37. // NLog.LogManager.GetCurrentClassLogger().Error("FEI电镜端口配置为空!");
  38. // return false;
  39. // }
  40. // m_api.set_ip(FEIIP);
  41. // m_api.set_port(int.Parse( FEIPORT));
  42. // if (m_api.isStart()==1)
  43. // {
  44. // return true;
  45. // }
  46. // if (m_api.start() == 1)
  47. // {
  48. // return true;
  49. // }
  50. // return false;
  51. //}
  52. //public EDSTYPE GetEDSType()
  53. //{
  54. // return EDSTYPE.PICOSMART;
  55. //}
  56. //public int GetExpectCount()
  57. //{
  58. // return AnalyExpCount;
  59. //}
  60. //public bool GetIfDelayQuantify()
  61. //{
  62. // return false;
  63. //}
  64. //public bool GetXRayByFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
  65. //{
  66. // return false;
  67. //}
  68. //public bool GetXRayByParts(List<COTSParticleClr> a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo)
  69. //{
  70. // return false;
  71. //}
  72. //public bool QuantifyXrayByPart(COTSParticleClr part)
  73. //{
  74. // return false;
  75. //}
  76. //public void SetFilterKeyEleNames(List<string> KeyNameList)
  77. //{
  78. //}
  79. //public void SetResolution(int resolutionWidth, int resolutionHeight)
  80. //{
  81. //}
  82. //bool IEDSController.GetXRayByExpandFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo)
  83. //{
  84. // return true;
  85. //}
  86. //private bool SetAnalyExpCount(int MaxCounts)
  87. //{
  88. // AnalyExpCount = MaxCounts;
  89. // return true;
  90. //}
  91. //void IEDSController.SetQuantifiCationParam(bool IfAutoId, string knownElements)
  92. //{
  93. // //throw new NotImplementedException();
  94. //}
  95. }
  96. }