ScanController.cs 1.2 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. //scan = new COTSControlFunExport();
  19. }
  20. public CBSEImgClr AcquireBSEImage(int matrixIndex, int reads, int dwell)
  21. {
  22. CBSEImgClr bse = new CBSEImgClr();
  23. scan.AcquireBSEImage(matrixIndex, reads, dwell, ref bse);
  24. return bse;
  25. }
  26. public bool Init()
  27. {
  28. return scan.ScanInit();
  29. }
  30. public bool SetAndStartScan()
  31. {
  32. return scan.SetAndStartScan();
  33. }
  34. public bool SetDwellTime(long val)
  35. {
  36. return scan.SetDwellTime((int)val);
  37. }
  38. public bool SetImageSize(int width,int height)
  39. {
  40. return scan.SetImageSize(width,height);
  41. }
  42. }
  43. }