ScanController.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using NSOTSController;
  2. using OTSCOMMONCLR;
  3. using OTSDataType;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace OTSModelSharp.ServiceInterface
  11. {
  12. public class ScanController : IScanController
  13. {
  14. private NSOTSController.COTSControlFunExport scan;
  15. public ScanController()
  16. {
  17. this.scan = SemController.hw;
  18. }
  19. public CBSEImgClr AcquireBSEImage(int matrixIndex, int reads, int dwell)
  20. {
  21. CBSEImgClr bse = new CBSEImgClr();
  22. scan.AcquireBSEImage(matrixIndex, reads, dwell, ref bse);
  23. return bse;
  24. }
  25. public bool Init()
  26. {
  27. return scan.ScanInit();
  28. }
  29. //public bool SetAndStartScan()
  30. //{
  31. // return scan.SetAndStartScan();
  32. //}
  33. public bool SetDwellTime(long val)
  34. {
  35. return scan.SetDwellTime((int)val);
  36. }
  37. public bool SetImageSize(int width,int height)
  38. {
  39. return scan.SetImageSize(width,height);
  40. }
  41. }
  42. }