IMeasureHardware.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using OTSDataType;
  7. using System.Drawing;
  8. using OTSCLRINTERFACE;
  9. namespace OTSModelSharp.ServiceInterface
  10. {
  11. public interface ISemController
  12. {
  13. bool IsConnected();
  14. bool Connect();
  15. bool DisConnect();
  16. bool SetMagnification(double a_dMagnification);
  17. bool GetMagnification(ref double a_dMagnification);
  18. bool SetWorkingDistance(double a_distance);
  19. bool GetWorkingDistance(ref double a_distance);
  20. bool SetScanExternal(bool b);
  21. bool GetScanFieldSize(ref double dScanFieldSizeX,ref double dScanFieldSizeY);
  22. bool SetScanFieldSize100(double dScanFieldSizeX,double dScanFieldSizeY);
  23. bool GetScanFieldSize100(ref double dScanFieldSizeX, ref double dScanFieldSizeY);
  24. bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR);
  25. bool MoveSEMToPoint(double a_dPositionX, double a_dPositionY, double rotation);
  26. bool MoveSEMToPoint(double a_dPositionX, double a_dPositionY);
  27. bool SetSemBrightness(double a_dBrightness);
  28. bool GetSemBrightness(ref double a_dBrightness);
  29. bool SetSemContrast(double a_dContrast);
  30. bool GetSemContrast(ref double a_dContrast);
  31. bool SetSemHighTension(double a_dKV);
  32. bool GetSemHighTension(ref double a_dKV);
  33. bool SetSemBeamCurrent(bool a_dKV);
  34. bool SetSemBeamBlank(bool a_dKV);
  35. bool GetSemBeamBlank(ref int a_nBeamBlank);
  36. bool StopXrayAcquisition();
  37. OTSCLRINTERFACE.COTSControlFunExport GetHardwareInterface();
  38. }
  39. public interface IScanController
  40. {
  41. bool Init();
  42. bool SetDwellTime(long val);
  43. bool SetImageSize(int nWidth,int nHeight);
  44. //bool SetAndStartScan();
  45. CBSEImgClr AcquireBSEImage(int matrixIndex,int reads,int dwell);
  46. }
  47. public interface IEDSController
  48. {
  49. bool Init();
  50. bool GetXRayByFeatures(List<COTSParticleClr> a_listParticles, double a_nXRayAQTime, bool a_bElementInfo /*= FALSE*/);//这里将DWORD转成了Double类型,因为在后续调用时还有DWORD强制转换
  51. bool GetXRayByPoints(List<COTSParticleClr> a_listParticles, uint a_nXRayAQTime, bool a_bElementInfo /*= FALSE*/);
  52. }
  53. }