MeasureParam.cs 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  1. //时间:20200618
  2. //作者:郝爽
  3. //功能:测量参数
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using FileManager;
  10. using System.Xml;
  11. using System.IO;
  12. namespace MeasureData
  13. {
  14. public class MeasureParam : ISlo
  15. {
  16. #region 内容
  17. //工作条件,一次测量的全部切孔都是一类的
  18. // 样品类型
  19. private string m_SampleName;
  20. public string SampleName
  21. {
  22. get { return this.m_SampleName; }
  23. set { this.m_SampleName = value; }
  24. }
  25. //是否仅拍照
  26. private Boolean is_Photograph;
  27. public Boolean Is_Photograph
  28. {
  29. get { return this.is_Photograph; }
  30. set { this.is_Photograph = value; }
  31. }
  32. //是否有pt工序
  33. private Boolean m_pt;
  34. public Boolean PT
  35. {
  36. get { return this.m_pt; }
  37. set { this.m_pt = value; }
  38. }
  39. //倾斜样品台
  40. private Boolean m_Tilt;
  41. public Boolean Tilt
  42. {
  43. get { return this.m_Tilt; }
  44. set { this.m_Tilt = value; }
  45. }
  46. //是否有EDS
  47. private Boolean m_EDS;
  48. public Boolean EDS
  49. {
  50. get { return this.m_EDS; }
  51. set { this.m_EDS = value; }
  52. }
  53. //能谱Z轴移动的位置
  54. private float edsZ;
  55. public float EDSZ
  56. {
  57. get { return this.edsZ; }
  58. set { this.edsZ = value; }
  59. }
  60. //能谱电压设定值
  61. private float edsV;
  62. public float EDSV
  63. {
  64. get { return this.edsV; }
  65. set { this.edsV = value; }
  66. }
  67. //能谱电压设定值
  68. private float edsA;
  69. public float EDSA
  70. {
  71. get { return this.edsA; }
  72. set { this.edsA = value; }
  73. }
  74. //Z轴移动的范围
  75. private float m_dZ;
  76. public float ZDistance
  77. {
  78. get { return this.m_dZ; }
  79. set { this.m_dZ = value; }
  80. }
  81. //FIB使用的ELY文件
  82. private string m_fibTemp;
  83. public string FIBTemp
  84. {
  85. get { return this.m_fibTemp; }
  86. set { this.m_fibTemp = value; }
  87. }
  88. //PT使用的ELY文件
  89. private string m_ptTemp;
  90. public string PTTemp
  91. {
  92. get { return this.m_ptTemp; }
  93. set { this.m_ptTemp = value; }
  94. }
  95. //对焦方式,自动对焦还是手动对焦,手动对焦是1,自有自动对焦2,客户自动对焦3
  96. private int m_fMode;
  97. public int FocusMode
  98. {
  99. get { return m_fMode; }
  100. set { m_fMode = value; }
  101. }
  102. //拉直操作需要的放大位数
  103. private float stretch_Magnification;
  104. public float Stretch_Magnification
  105. {
  106. get { return this.stretch_Magnification; }
  107. set { this.stretch_Magnification = value; }
  108. }
  109. //定位切割位置的放大倍数
  110. private float location_Magnification;
  111. public float Location_Magnification
  112. {
  113. get { return this.location_Magnification; }
  114. set { this.location_Magnification = value; }
  115. }
  116. //定位切割位置的工作电压
  117. private float location_Voltage;
  118. public float Location_Voltage
  119. {
  120. get { return this.location_Voltage; }
  121. set { this.location_Voltage = value; }
  122. }
  123. //拍照的放大倍数
  124. private float photograph_Magnification;
  125. public float Photograph_Magnification
  126. {
  127. get { return this.photograph_Magnification; }
  128. set { this.photograph_Magnification = value; }
  129. }
  130. //拍照的工作电压
  131. private float photograph_Voltage;
  132. public float Photograph_Voltage
  133. {
  134. get { return this.photograph_Voltage; }
  135. set { this.photograph_Voltage = value; }
  136. }
  137. //FIB拍照时的放大倍数
  138. private float fib_Magnification;
  139. public float FIB_Magnification
  140. {
  141. get { return this.fib_Magnification; }
  142. set { this.fib_Magnification = value; }
  143. }
  144. //校正角度选择
  145. private float correction_Angle;
  146. public float Correction_Angle
  147. {
  148. get { return this.correction_Angle; }
  149. set { this.correction_Angle = value; }
  150. }
  151. //厂商
  152. private String firm;
  153. public String Firm
  154. {
  155. get { return this.firm; }
  156. set { this.firm = value; }
  157. }
  158. //对焦参数, SEM
  159. private FocusParamold focusP;
  160. public FocusParamold AutoFocus
  161. {
  162. get { return this.focusP; }
  163. set { this.focusP = value; }
  164. }
  165. //对焦参数, FIB
  166. private FocusParamold focusF;
  167. public FocusParamold FIBFocus
  168. {
  169. get { return this.focusF; }
  170. set { this.focusF = value; }
  171. }
  172. //消像散x参数
  173. private FocusParamold StigX;
  174. public FocusParamold AutoStigX
  175. {
  176. get { return this.StigX; }
  177. set { this.StigX = value; }
  178. }
  179. //消像散Y参数
  180. private FocusParamold StigY;
  181. public FocusParamold AutoStigY
  182. {
  183. get { return this.StigY; }
  184. set { this.StigY = value; }
  185. }
  186. //EDS参数
  187. private EDSParam EdsParam;
  188. public EDSParam EDSParam
  189. {
  190. get { return this.EdsParam; }
  191. set { this.EdsParam = value; }
  192. }
  193. #region 放大倍数档位切换功能
  194. //档位阈值4个,4个偏差补偿值
  195. private bool bMagComp;
  196. public bool MagComp
  197. {
  198. get { return this.bMagComp; }
  199. set { this.bMagComp = value; }
  200. }
  201. private float fMagRange1;
  202. public float MagRange1
  203. {
  204. get { return this.fMagRange1; }
  205. set
  206. {
  207. if (value < this.fMagRange2)
  208. this.fMagRange1 = value;
  209. }
  210. }
  211. private float fMagCompX1;
  212. public float MagCompX1
  213. {
  214. get { return this.fMagCompX1; }
  215. set { this.fMagCompX1 = value; }
  216. }
  217. private float fMagCompY1;
  218. public float MagCompY1
  219. {
  220. get { return this.fMagCompY1; }
  221. set { this.fMagCompY1 = value; }
  222. }
  223. private float fMagRange2;
  224. public float MagRange2
  225. {
  226. get { return this.fMagRange2; }
  227. set
  228. {
  229. if ((value > this.fMagRange1) && (value < this.fMagRange3))
  230. this.fMagRange2 = value;
  231. }
  232. }
  233. private float fMagCompX2;
  234. public float MagCompX2
  235. {
  236. get { return this.fMagCompX2; }
  237. set { this.fMagCompX2 = value; }
  238. }
  239. private float fMagCompY2;
  240. public float MagCompY2
  241. {
  242. get { return this.fMagCompY2; }
  243. set { this.fMagCompY2 = value; }
  244. }
  245. private float fMagRange3;
  246. public float MagRange3
  247. {
  248. get { return this.fMagRange3; }
  249. set
  250. {
  251. if ((value > this.fMagRange2) && (value < this.fMagRange4))
  252. this.fMagRange3 = value;
  253. }
  254. }
  255. private float fMagCompX3;
  256. public float MagCompX3
  257. {
  258. get { return this.fMagCompX3; }
  259. set { this.fMagCompX3 = value; }
  260. }
  261. private float fMagCompY3;
  262. public float MagCompY3
  263. {
  264. get { return this.fMagCompY3; }
  265. set { this.fMagCompY3 = value; }
  266. }
  267. private float fMagRange4;
  268. public float MagRange4
  269. {
  270. get { return this.fMagRange4; }
  271. set
  272. {
  273. if (value > this.fMagRange3)
  274. this.fMagRange4 = value;
  275. }
  276. }
  277. private float fMagCompX4;
  278. public float MagCompX4
  279. {
  280. get { return this.fMagCompX4; }
  281. set { this.fMagCompX4 = value; }
  282. }
  283. private float fMagCompY4;
  284. public float MagCompY4
  285. {
  286. get { return this.fMagCompY4; }
  287. set { this.fMagCompY4 = value; }
  288. }
  289. #endregion
  290. #region FIB自动亮度对比度调整
  291. //是否调节FIB
  292. private bool IsFIBDo;
  293. public bool FIBDo
  294. {
  295. get { return this.IsFIBDo; }
  296. set { this.IsFIBDo = value; }
  297. }
  298. //是否开启亮度对比度自动调节
  299. private bool IsFIBAutoBC;
  300. public bool FIBAutoBC
  301. {
  302. get { return this.IsFIBAutoBC; }
  303. set { this.IsFIBAutoBC = value; }
  304. }
  305. //关闭亮度对比度时,亮度和对比度的设置值
  306. private float FIBBright;
  307. public float FIBB
  308. {
  309. get { return this.FIBBright; }
  310. set { this.FIBBright = value; }
  311. }
  312. private float FIBContrast;
  313. public float FIBC
  314. {
  315. get { return this.FIBContrast; }
  316. set { this.FIBContrast = value; }
  317. }
  318. //是否开启在其他位置调节亮度对比度功能,再挪回原来位置
  319. #endregion
  320. //ScanRotation修正角度
  321. private float scanRotCor;
  322. public float ScanRotCor
  323. {
  324. get { return this.scanRotCor; }
  325. set { this.scanRotCor = value; }
  326. }
  327. //ScanRotation修正角度
  328. private float pixelSizeCor;
  329. public float PixelSizeCor
  330. {
  331. get { return this.pixelSizeCor; }
  332. set { this.pixelSizeCor = value; }
  333. }
  334. //能谱参数
  335. #region add by sun 2020-12-15 增加不同样品扫描速度参数
  336. //正常情况下默认扫描速度
  337. private String m_ScanSpeedNormal;
  338. public String ScanSpeedNormal
  339. {
  340. get { return this.m_ScanSpeedNormal; }
  341. set { this.m_ScanSpeedNormal = value; }
  342. }
  343. //对焦拍照扫描速度
  344. private String m_ScanSpeedFocus;
  345. public String ScanSpeedFocus
  346. {
  347. get { return this.m_ScanSpeedFocus; }
  348. set { this.m_ScanSpeedFocus = value; }
  349. }
  350. //高倍拍照扫描速度
  351. private String m_ScanSpeedHigh;
  352. public String ScanSpeedHigh
  353. {
  354. get { return this.m_ScanSpeedHigh; }
  355. set { this.m_ScanSpeedHigh = value; }
  356. }
  357. #endregion add by sun 2020-12-15 增加不同样品扫描速度参数end
  358. //add by sun 2020-12-17 增加调试时是否切割开关
  359. private bool m_IsCutingForDebug;
  360. public bool IsCutingForDebug
  361. {
  362. get { return this.m_IsCutingForDebug; }
  363. set { this.m_IsCutingForDebug = value; }
  364. }
  365. //add by sun 2020-12-17 增加调试时是否切割开关 end
  366. //add by zjx 2020-12-18 为了测试只做能谱部分
  367. private bool m_IsonlyEDSForDebug;
  368. public bool IsonlyEDSForDebug
  369. {
  370. get { return this.m_IsonlyEDSForDebug; }
  371. set { this.m_IsonlyEDSForDebug = value; }
  372. }
  373. //add by zjx 2020-12-18 为了测试只做能谱部分 end
  374. #endregion
  375. #region 初始化样品的默认参数
  376. // add by zjx 2020-12-20 厂商名字
  377. #region 厂商
  378. private String m_VendorType0;
  379. public String VendorType0
  380. {
  381. get { return this.m_VendorType0; }
  382. set { this.m_VendorType0 = value; }
  383. }
  384. private String m_VendorType1;
  385. public String VendorType1
  386. {
  387. get { return this.m_VendorType1; }
  388. set { this.m_VendorType1 = value; }
  389. }
  390. private String m_VendorType2;
  391. public String VendorType2
  392. {
  393. get { return this.m_VendorType2; }
  394. set { this.m_VendorType2 = value; }
  395. }
  396. private String m_VendorType3;
  397. public String VendorType3
  398. {
  399. get { return this.m_VendorType3; }
  400. set { this.m_VendorType3 = value; }
  401. }
  402. private String m_VendorType4;
  403. public String VendorType4
  404. {
  405. get { return this.m_VendorType4; }
  406. set { this.m_VendorType4 = value; }
  407. }
  408. private String m_VendorType5;
  409. public String VendorType5
  410. {
  411. get { return this.m_VendorType5; }
  412. set { this.m_VendorType5 = value; }
  413. }
  414. #endregion
  415. // add by zjx 2020-12-20 厂商名字 end
  416. // add by zjx 2020-12-20 校正角度
  417. #region 校正角度
  418. private String m_CorrectionType0;
  419. public String CorrectionType0
  420. {
  421. get { return this.m_CorrectionType0; }
  422. set { this.m_CorrectionType0 = value; }
  423. }
  424. private String m_CorrectionType1;
  425. public String CorrectionType1
  426. {
  427. get { return this.m_CorrectionType1; }
  428. set { this.m_CorrectionType1 = value; }
  429. }
  430. private String m_CorrectionType2;
  431. public String CorrectionType2
  432. {
  433. get { return this.m_CorrectionType2; }
  434. set { this.m_CorrectionType2 = value; }
  435. }
  436. private String m_CorrectionType3;
  437. public String CorrectionType3
  438. {
  439. get { return this.m_CorrectionType3; }
  440. set { this.m_CorrectionType3 = value; }
  441. }
  442. private String m_CorrectionType4;
  443. public String CorrectionType4
  444. {
  445. get { return this.m_CorrectionType4; }
  446. set { this.m_CorrectionType4 = value; }
  447. }
  448. private String m_CorrectionType5;
  449. public String CorrectionType5
  450. {
  451. get { return this.m_CorrectionType5; }
  452. set { this.m_CorrectionType5 = value; }
  453. }
  454. #endregion
  455. //add by zjx 2020-12-20 校正角度 end
  456. //add by zjx 2020-12-20 拉直操作放大倍数
  457. #region 拉直操作放大倍数
  458. private String m_StraightenTimesType0;
  459. public String StraightenTimesType0
  460. {
  461. get { return this.m_StraightenTimesType0; }
  462. set { this.m_StraightenTimesType0 = value; }
  463. }
  464. private String m_StraightenTimesType1;
  465. public String StraightenTimesType1
  466. {
  467. get { return this.m_StraightenTimesType1; }
  468. set { this.m_StraightenTimesType1 = value; }
  469. }
  470. private String m_StraightenTimesType2;
  471. public String StraightenTimesType2
  472. {
  473. get { return this.m_StraightenTimesType2; }
  474. set { this.m_StraightenTimesType2 = value; }
  475. }
  476. private String m_StraightenTimesType3;
  477. public String StraightenTimesType3
  478. {
  479. get { return this.m_StraightenTimesType3; }
  480. set { this.m_StraightenTimesType3 = value; }
  481. }
  482. private String m_StraightenTimesType4;
  483. public String StraightenTimesType4
  484. {
  485. get { return this.m_StraightenTimesType4; }
  486. set { this.m_StraightenTimesType4 = value; }
  487. }
  488. private String m_StraightenTimesType5;
  489. public String StraightenTimesType5
  490. {
  491. get { return this.m_StraightenTimesType5; }
  492. set { this.m_StraightenTimesType5 = value; }
  493. }
  494. #endregion
  495. //add by zjx 2020-12-20 拉直操作放大倍数 end
  496. //add by zjx 2020-12-20 样品类型的定位电压
  497. #region 样品类型的定位电压
  498. private String m_PositioningVoltageeType0;
  499. public String PositioningVoltageeType0
  500. {
  501. get { return this.m_PositioningVoltageeType0; }
  502. set { this.m_PositioningVoltageeType0 = value; }
  503. }
  504. private String m_PositioningVoltageeType1;
  505. public String PositioningVoltageeType1
  506. {
  507. get { return this.m_PositioningVoltageeType1; }
  508. set { this.m_PositioningVoltageeType1 = value; }
  509. }
  510. private String m_PositioningVoltageeType2;
  511. public String PositioningVoltageeType2
  512. {
  513. get { return this.m_PositioningVoltageeType2; }
  514. set { this.m_PositioningVoltageeType2 = value; }
  515. }
  516. private String m_PositioningVoltageeType3;
  517. public String PositioningVoltageeType3
  518. {
  519. get { return this.m_PositioningVoltageeType3; }
  520. set { this.m_PositioningVoltageeType3 = value; }
  521. }
  522. private String m_PositioningVoltageeType4;
  523. public String PositioningVoltageeType4
  524. {
  525. get { return this.m_PositioningVoltageeType4; }
  526. set { this.m_PositioningVoltageeType4 = value; }
  527. }
  528. private String m_PositioningVoltageeType5;
  529. public String PositioningVoltageeType5
  530. {
  531. get { return this.m_PositioningVoltageeType5; }
  532. set { this.m_PositioningVoltageeType5 = value; }
  533. }
  534. #endregion
  535. //add by zjx 2020-12-20 样品类型的定位电压 end
  536. //add by zjx 2020-12-20 样品类型的定位放大倍数
  537. #region 定位放大倍数
  538. private String m_PositioningTimesType0;
  539. public String PositioningTimesType0
  540. {
  541. get { return this.m_PositioningTimesType0; }
  542. set { this.m_PositioningTimesType0 = value; }
  543. }
  544. private String m_PositioningTimesType1;
  545. public String PositioningTimesType1
  546. {
  547. get { return this.m_PositioningTimesType1; }
  548. set { this.m_PositioningTimesType1 = value; }
  549. }
  550. private String m_PositioningTimesType2;
  551. public String PositioningTimesType2
  552. {
  553. get { return this.m_PositioningTimesType2; }
  554. set { this.m_PositioningTimesType2 = value; }
  555. }
  556. private String m_PositioningTimesType3;
  557. public String PositioningTimesType3
  558. {
  559. get { return this.m_PositioningTimesType3; }
  560. set { this.m_PositioningTimesType3 = value; }
  561. }
  562. private String m_PositioningTimesType4;
  563. public String PositioningTimesType4
  564. {
  565. get { return this.m_PositioningTimesType4; }
  566. set { this.m_PositioningTimesType4 = value; }
  567. }
  568. private String m_PositioningTimesType5;
  569. public String PositioningTimesType5
  570. {
  571. get { return this.m_PositioningTimesType5; }
  572. set { this.m_PositioningTimesType5 = value; }
  573. }
  574. #endregion
  575. //add by zjx 2020-12-20 样品类型的定位放大倍数 end
  576. //add by zjx 2020-12-20 样品类型的拍照电压
  577. #region 拍照电压
  578. private String m_PhotoVoltageeType0;
  579. public String PhotoVoltageeType0
  580. {
  581. get { return this.m_PhotoVoltageeType0; }
  582. set { this.m_PhotoVoltageeType0 = value; }
  583. }
  584. private String m_PhotoVoltageeType1;
  585. public String PhotoVoltageeType1
  586. {
  587. get { return this.m_PhotoVoltageeType1; }
  588. set { this.m_PhotoVoltageeType1 = value; }
  589. }
  590. private String m_PhotoVoltageeType2;
  591. public String PhotoVoltageeType2
  592. {
  593. get { return this.m_PhotoVoltageeType2; }
  594. set { this.m_PhotoVoltageeType2 = value; }
  595. }
  596. private String m_PhotoVoltageeType3;
  597. public String PhotoVoltageeType3
  598. {
  599. get { return this.m_PhotoVoltageeType3; }
  600. set { this.m_PhotoVoltageeType3 = value; }
  601. }
  602. private String m_PhotoVoltageeType4;
  603. public String PhotoVoltageeType4
  604. {
  605. get { return this.m_PhotoVoltageeType4; }
  606. set { this.m_PhotoVoltageeType4 = value; }
  607. }
  608. private String m_PhotoVoltageeType5;
  609. public String PhotoVoltageeType5
  610. {
  611. get { return this.m_PhotoVoltageeType5; }
  612. set { this.m_PhotoVoltageeType5 = value; }
  613. }
  614. #endregion
  615. //add by zjx 2020-12-20 样品类型的拍照电压 end
  616. //add by zjx 2020-12-20 样品类型的拍照放大倍数
  617. #region 拍照放大倍数
  618. private String m_PhotoTimesType0;
  619. public String PhotoTimesType0
  620. {
  621. get { return this.m_PhotoTimesType0; }
  622. set { this.m_PhotoTimesType0 = value; }
  623. }
  624. private String m_PhotoTimesType1;
  625. public String PhotoTimesType1
  626. {
  627. get { return this.m_PhotoTimesType1; }
  628. set { this.m_PhotoTimesType1 = value; }
  629. }
  630. private String m_PhotoTimesType2;
  631. public String PhotoTimesType2
  632. {
  633. get { return this.m_PhotoTimesType2; }
  634. set { this.m_PhotoTimesType2 = value; }
  635. }
  636. private String m_PhotoTimesType3;
  637. public String PhotoTimesType3
  638. {
  639. get { return this.m_PhotoTimesType3; }
  640. set { this.m_PhotoTimesType3 = value; }
  641. }
  642. private String m_PhotoTimesType4;
  643. public String PhotoTimesType4
  644. {
  645. get { return this.m_PhotoTimesType4; }
  646. set { this.m_PhotoTimesType4 = value; }
  647. }
  648. private String m_PhotoTimesType5;
  649. public String PhotoTimesType5
  650. {
  651. get { return this.m_PhotoTimesType5; }
  652. set { this.m_PhotoTimesType5 = value; }
  653. }
  654. #endregion
  655. //add by zjx 2020-12-20 样品类型的拍照放大倍数 end
  656. //add by zjx 2020-12-20 样品类型的ScanRotate修正参数
  657. #region ScanRotate修正参数
  658. private String m_ScanRotateType0;
  659. public String ScanRotateType0
  660. {
  661. get { return this.m_ScanRotateType0; }
  662. set { this.m_ScanRotateType0 = value; }
  663. }
  664. private String m_ScanRotateType1;
  665. public String ScanRotateType1
  666. {
  667. get { return this.m_ScanRotateType1; }
  668. set { this.m_ScanRotateType1 = value; }
  669. }
  670. private String m_ScanRotateType2;
  671. public String ScanRotateType2
  672. {
  673. get { return this.m_ScanRotateType2; }
  674. set { this.m_ScanRotateType2 = value; }
  675. }
  676. private String m_ScanRotateType3;
  677. public String ScanRotateType3
  678. {
  679. get { return this.m_ScanRotateType3; }
  680. set { this.m_ScanRotateType3 = value; }
  681. }
  682. private String m_ScanRotateType4;
  683. public String ScanRotateType4
  684. {
  685. get { return this.m_ScanRotateType4; }
  686. set { this.m_ScanRotateType4 = value; }
  687. }
  688. private String m_ScanRotateType5;
  689. public String ScanRotateType5
  690. {
  691. get { return this.m_ScanRotateType5; }
  692. set { this.m_ScanRotateType5 = value; }
  693. }
  694. #endregion
  695. //add by zjx 2020-12-20 样品类型的ScanRotate修正参数 end
  696. //add by zjx 2020-12-20 样品类型的Y轴方向PixelSize修正值
  697. #region Y轴方向PixelSize修正值
  698. private String m_PixelSizeType0;
  699. public String PixelSizeType0
  700. {
  701. get { return this.m_PixelSizeType0; }
  702. set { this.m_PixelSizeType0 = value; }
  703. }
  704. private String m_PixelSizeType1;
  705. public String PixelSizeType1
  706. {
  707. get { return this.m_PixelSizeType1; }
  708. set { this.m_PixelSizeType1 = value; }
  709. }
  710. private String m_PixelSizeType2;
  711. public String PixelSizeType2
  712. {
  713. get { return this.m_PixelSizeType2; }
  714. set { this.m_PixelSizeType2 = value; }
  715. }
  716. private String m_PixelSizeType3;
  717. public String PixelSizeType3
  718. {
  719. get { return this.m_PixelSizeType3; }
  720. set { this.m_PixelSizeType3 = value; }
  721. }
  722. private String m_PixelSizeType4;
  723. public String PixelSizeType4
  724. {
  725. get { return this.m_PixelSizeType4; }
  726. set { this.m_PixelSizeType4 = value; }
  727. }
  728. private String m_PixelSizeType5;
  729. public String PixelSizeType5
  730. {
  731. get { return this.m_PixelSizeType5; }
  732. set { this.m_PixelSizeType5 = value; }
  733. }
  734. #endregion
  735. //add by zjx 2020-12-20 样品类型的Y轴方向PixelSize修正值 end
  736. //add by zjx 2020-12-20 样品类型的能谱Z轴移动位置
  737. #region 能谱Z轴移动位置
  738. private String m_SEMAxis_ZType0;
  739. public String SEMAxis_ZType0
  740. {
  741. get { return this.m_SEMAxis_ZType0; }
  742. set { this.m_SEMAxis_ZType0 = value; }
  743. }
  744. private String m_SEMAxis_ZType1;
  745. public String SEMAxis_ZType1
  746. {
  747. get { return this.m_SEMAxis_ZType1; }
  748. set { this.m_SEMAxis_ZType1 = value; }
  749. }
  750. private String m_SEMAxis_ZType2;
  751. public String SEMAxis_ZType2
  752. {
  753. get { return this.m_SEMAxis_ZType2; }
  754. set { this.m_SEMAxis_ZType2 = value; }
  755. }
  756. private String m_SEMAxis_ZType3;
  757. public String SEMAxis_ZType3
  758. {
  759. get { return this.m_SEMAxis_ZType3; }
  760. set { this.m_SEMAxis_ZType3 = value; }
  761. }
  762. private String m_SEMAxis_ZType4;
  763. public String SEMAxis_ZType4
  764. {
  765. get { return this.m_SEMAxis_ZType4; }
  766. set { this.m_SEMAxis_ZType4 = value; }
  767. }
  768. private String m_SEMAxis_ZType5;
  769. public String SEMAxis_ZType5
  770. {
  771. get { return this.m_SEMAxis_ZType5; }
  772. set { this.m_SEMAxis_ZType5 = value; }
  773. }
  774. #endregion
  775. //add by zjx 2020-12-20 样品类型的能谱Z轴移动位置 end
  776. //add by zjx 2020-12-20 样品类型的能谱电压值
  777. #region 能谱电压值
  778. private String m_SEMVoltageeType0;
  779. public String SEMVoltageeType0
  780. {
  781. get { return this.m_SEMVoltageeType0; }
  782. set { this.m_SEMVoltageeType0 = value; }
  783. }
  784. private String m_SEMVoltageeType1;
  785. public String SEMVoltageeType1
  786. {
  787. get { return this.m_SEMVoltageeType1; }
  788. set { this.m_SEMVoltageeType1 = value; }
  789. }
  790. private String m_SEMVoltageeType2;
  791. public String SEMVoltageeType2
  792. {
  793. get { return this.m_SEMVoltageeType2; }
  794. set { this.m_SEMVoltageeType2 = value; }
  795. }
  796. private String m_SEMVoltageeType3;
  797. public String SEMVoltageeType3
  798. {
  799. get { return this.m_SEMVoltageeType3; }
  800. set { this.m_SEMVoltageeType3 = value; }
  801. }
  802. private String m_SEMVoltageeType4;
  803. public String SEMVoltageeType4
  804. {
  805. get { return this.m_SEMVoltageeType4; }
  806. set { this.m_SEMVoltageeType4 = value; }
  807. }
  808. private String m_SEMVoltageeType5;
  809. public String SEMVoltageeType5
  810. {
  811. get { return this.m_SEMVoltageeType5; }
  812. set { this.m_SEMVoltageeType5 = value; }
  813. }
  814. #endregion
  815. //add by zjx 2020-12-20 样品类型的能谱电压值 end
  816. //add by zjx 2020-12-20 样品类型的能谱电流值
  817. #region 能谱电流值
  818. private String m_SEMCurrentType0;
  819. public String SEMCurrentType0
  820. {
  821. get { return this.m_SEMCurrentType0; }
  822. set { this.m_SEMCurrentType0 = value; }
  823. }
  824. private String m_SEMCurrentType1;
  825. public String SEMCurrentType1
  826. {
  827. get { return this.m_SEMCurrentType1; }
  828. set { this.m_SEMCurrentType1 = value; }
  829. }
  830. private String m_SEMCurrentType2;
  831. public String SEMCurrentType2
  832. {
  833. get { return this.m_SEMCurrentType2; }
  834. set { this.m_SEMCurrentType2 = value; }
  835. }
  836. private String m_SEMCurrentType3;
  837. public String SEMCurrentType3
  838. {
  839. get { return this.m_SEMCurrentType3; }
  840. set { this.m_SEMCurrentType3 = value; }
  841. }
  842. private String m_SEMCurrentType4;
  843. public String SEMCurrentType4
  844. {
  845. get { return this.m_SEMCurrentType4; }
  846. set { this.m_SEMCurrentType4 = value; }
  847. }
  848. private String m_SEMCurrentType5;
  849. public String SEMCurrentType5
  850. {
  851. get { return this.m_SEMCurrentType5; }
  852. set { this.m_SEMCurrentType5 = value; }
  853. }
  854. #endregion
  855. //add by zjx 2020-12-20 样品类型的能谱电流值 end
  856. #endregion
  857. //构造函数
  858. public MeasureParam()
  859. {
  860. Init();
  861. }
  862. public void Init()
  863. {
  864. this.SampleName = @"";
  865. this.PT = false;
  866. this.FIBTemp = @"";
  867. this.PTTemp = @"";
  868. this.FocusMode = 2;
  869. this.AutoFocus = new FocusParamold();
  870. this.AutoFocus.TYPE = 1;
  871. this.AutoStigX = new FocusParamold();
  872. this.AutoStigX.TYPE = 2;
  873. this.AutoStigY = new FocusParamold();
  874. this.AutoStigY.TYPE = 3;
  875. this.FIBFocus = new FocusParamold();
  876. this.FIBFocus.TYPE = 4;
  877. this.Tilt = false;
  878. this.ZDistance = 0;
  879. this.EDS = false;
  880. this.EDSZ = 0.005f;
  881. this.EDSV = 10000;
  882. this.EDSA = 0.0000000005f;
  883. this.EDSParam = new EDSParam();
  884. //FIB自动亮度对比度
  885. this.FIBDo = false;
  886. this.FIBAutoBC = false;
  887. this.FIBB = 51;
  888. this.FIBC = 33;
  889. //档位阈值4个,4个偏差补偿值
  890. this.MagComp = false;
  891. this.MagRange1 = 300;
  892. this.MagCompX1 = 0;
  893. this.MagCompY1 = 0;
  894. this.MagRange2 = 700;
  895. this.MagCompX2 = 0;
  896. this.MagCompY2 = 0;
  897. this.MagRange3 = 2000;
  898. this.MagCompX3 = 0;
  899. this.MagCompY3 = 0;
  900. this.MagRange4 = 6000;
  901. this.fMagCompX4 = 0;
  902. this.fMagCompY4 = 0;
  903. this.ScanRotCor = 1;
  904. this.PixelSizeCor = 1;
  905. //add by sun 2020-12-15 增加不同样品扫描速度参数
  906. this.ScanSpeedNormal = "CMD_SCANRATE4";
  907. this.ScanSpeedFocus = "CMD_SCANRATE5";
  908. this.ScanSpeedHigh = "CMD_SCANRATE7";
  909. //add by sun 2020-12-15 增加不同样品扫描速度参数 end
  910. }
  911. //XML文件保存测量参数
  912. public override void Serialize(bool isStoring, XmlDocument xml, XmlNode rootNode)
  913. {
  914. Slo sFile = new Slo();
  915. //是否拍照和PT
  916. xBool isPhotograph = new xBool();
  917. xBool ptDepostion = new xBool();
  918. xBool isTilt = new xBool();
  919. xBool isEDS = new xBool();
  920. isTilt.AssignValue(this.Tilt);
  921. isEDS.AssignValue(this.EDS);
  922. isPhotograph.AssignValue(this.is_Photograph);
  923. ptDepostion.AssignValue(this.m_pt);
  924. sFile.Register("Is_Title", isTilt);
  925. sFile.Register("Is_Photograph", isPhotograph);
  926. sFile.Register("PT_Depostion", ptDepostion);
  927. sFile.Register("Is_EDS", isEDS);
  928. //ELY文件
  929. xString ptELYFile = new xString();
  930. xString fibELYFile = new xString();
  931. ptELYFile.AssignValue(this.m_ptTemp);
  932. fibELYFile.AssignValue(this.m_fibTemp);
  933. sFile.Register("PT_ELYFile", ptELYFile);
  934. sFile.Register("FIB_ELYFile", fibELYFile);
  935. //对焦方式
  936. xInt focusmode = new xInt();
  937. focusmode.AssignValue(this.m_fMode);
  938. sFile.Register("FocusMode", focusmode);
  939. //放大倍数和电压参数
  940. xDouble stretchMagnification = new xDouble();
  941. xDouble locationMagnification = new xDouble();
  942. xDouble locationVoltage = new xDouble();
  943. xDouble photographMagnification = new xDouble();
  944. xDouble photographVoltage = new xDouble();
  945. xDouble fibMagnification = new xDouble();
  946. xDouble ZDistance = new xDouble();
  947. xDouble xEDSZ = new xDouble();
  948. xDouble xEDSV = new xDouble();
  949. xDouble xEDSA = new xDouble();
  950. xEDSZ.AssignValue(this.edsZ);
  951. xEDSV.AssignValue(this.edsV);
  952. xEDSA.AssignValue(this.edsA);
  953. ZDistance.AssignValue(this.ZDistance);
  954. stretchMagnification.AssignValue(this.stretch_Magnification);
  955. locationMagnification.AssignValue(this.location_Magnification);
  956. locationVoltage.AssignValue(this.location_Voltage);
  957. photographMagnification.AssignValue(this.photograph_Magnification);
  958. photographVoltage.AssignValue(this.photograph_Voltage);
  959. fibMagnification.AssignValue(this.fib_Magnification);
  960. sFile.Register("Strectch_Magnification", stretchMagnification);
  961. sFile.Register("Locatio_Magnification", locationMagnification);
  962. sFile.Register("Location_Voltage", locationVoltage);
  963. sFile.Register("Photograph_Magnification", photographMagnification);
  964. sFile.Register("Photograph_Voltage", photographVoltage);
  965. sFile.Register("FIB_Magnification", fibMagnification);
  966. sFile.Register("ZDistance", ZDistance);
  967. sFile.Register("EDSZ", xEDSZ);
  968. sFile.Register("EDSV", xEDSV);
  969. sFile.Register("EDSA", xEDSA);
  970. //校正角度
  971. xDouble correctionAngle = new xDouble();
  972. correctionAngle.AssignValue(this.correction_Angle);
  973. sFile.Register("Correction_Angle", correctionAngle);
  974. //样品名称和厂商
  975. xString sampleType = new xString();
  976. xString _firm = new xString();
  977. sampleType.AssignValue(this.m_SampleName);
  978. _firm.AssignValue(this.firm);
  979. sFile.Register("Sample_Type", sampleType);
  980. sFile.Register("Firm", _firm);
  981. //对焦参数
  982. sFile.Register("Focus_Param", this.focusP);
  983. sFile.Register("FIBFocus_Param", this.FIBFocus);
  984. sFile.Register("StigX_Param", this.AutoStigX);
  985. sFile.Register("StigY_Param", this.AutoStigY);
  986. sFile.Register("EDS_Param", this.EDSParam);
  987. //FIB亮度对比
  988. xBool isFIBDo = new xBool();
  989. xBool isFIBAutoBC = new xBool();
  990. xDouble xFIBB = new xDouble();
  991. xDouble xFIBC = new xDouble();
  992. xBool isMagComp = new xBool();
  993. xDouble xMagRange1 = new xDouble();
  994. xDouble xMagCompX1 = new xDouble();
  995. xDouble xMagCompY1 = new xDouble();
  996. xDouble xMagRange2 = new xDouble();
  997. xDouble xMagCompX2 = new xDouble();
  998. xDouble xMagCompY2 = new xDouble();
  999. xDouble xMagRange3 = new xDouble();
  1000. xDouble xMagCompX3 = new xDouble();
  1001. xDouble xMagCompY3 = new xDouble();
  1002. xDouble xMagRange4 = new xDouble();
  1003. xDouble xMagCompX4 = new xDouble();
  1004. xDouble xMagCompY4 = new xDouble();
  1005. isFIBDo.AssignValue(this.FIBDo);
  1006. isFIBAutoBC.AssignValue(this.FIBAutoBC);
  1007. xFIBB.AssignValue(this.FIBB);
  1008. xFIBC.AssignValue(this.FIBC);
  1009. isMagComp.AssignValue(this.MagComp);
  1010. xMagRange1.AssignValue(this.MagRange1);
  1011. xMagCompX1.AssignValue(this.MagCompX1);
  1012. xMagCompY1.AssignValue(this.MagCompY1);
  1013. xMagRange2.AssignValue(this.MagRange2);
  1014. xMagCompX2.AssignValue(this.MagCompX2);
  1015. xMagCompY2.AssignValue(this.MagCompY2);
  1016. xMagRange3.AssignValue(this.MagRange3);
  1017. xMagCompX3.AssignValue(this.MagCompX3);
  1018. xMagCompY3.AssignValue(this.MagCompY3);
  1019. xMagRange4.AssignValue(this.MagRange4);
  1020. xMagCompX4.AssignValue(this.MagCompX4);
  1021. xMagCompY4.AssignValue(this.MagCompY4);
  1022. sFile.Register("Is_FIBDo", isFIBDo);
  1023. sFile.Register("Is_FIBAutoBC", isFIBAutoBC);
  1024. sFile.Register("FIB_B", xFIBB);
  1025. sFile.Register("FIB_C", xFIBC);
  1026. sFile.Register("Mag_Comp", isMagComp);
  1027. sFile.Register("Mag_Range1", xMagRange1);
  1028. sFile.Register("Mag_CompX1", xMagCompX1);
  1029. sFile.Register("Mag_CompY1", xMagCompY1);
  1030. sFile.Register("Mag_Range2", xMagRange2);
  1031. sFile.Register("Mag_CompX2", xMagCompX2);
  1032. sFile.Register("Mag_CompY2", xMagCompY2);
  1033. sFile.Register("Mag_Range3", xMagRange3);
  1034. sFile.Register("Mag_CompX3", xMagCompX3);
  1035. sFile.Register("Mag_CompY3", xMagCompY3);
  1036. sFile.Register("Mag_Range4", xMagRange4);
  1037. sFile.Register("Mag_CompX4", xMagCompX4);
  1038. sFile.Register("Mag_CompY4", xMagCompY4);
  1039. //ScanRotate修正
  1040. xDouble scanRotate = new xDouble();
  1041. scanRotate.AssignValue(this.scanRotCor);
  1042. sFile.Register("ScanRotateCorrect", scanRotate);
  1043. //PixelSize_Y轴补偿
  1044. xDouble pscor = new xDouble();
  1045. pscor.AssignValue(this.pixelSizeCor);
  1046. sFile.Register("PixelSizeYCorrect", pscor);
  1047. if (isStoring)
  1048. {
  1049. sFile.Serialize(true, xml, rootNode);
  1050. }
  1051. else
  1052. {
  1053. sFile.Serialize(false, xml, rootNode);
  1054. this.is_Photograph = isPhotograph.value();
  1055. this.m_pt = ptDepostion.value();
  1056. this.Tilt = isTilt.value();
  1057. this.EDS = isEDS.value();
  1058. this.m_ptTemp = ptELYFile.value();
  1059. this.m_fibTemp = fibELYFile.value();
  1060. this.m_fMode = focusmode.value();
  1061. this.stretch_Magnification = Convert.ToSingle(stretchMagnification.value());
  1062. this.location_Magnification = Convert.ToSingle(locationMagnification.value());
  1063. this.location_Voltage = Convert.ToSingle(locationVoltage.value());
  1064. this.photograph_Magnification = Convert.ToSingle(photographMagnification.value());
  1065. this.photograph_Voltage = Convert.ToSingle(photographVoltage.value());
  1066. this.correction_Angle = Convert.ToSingle(correctionAngle.value());
  1067. this.m_SampleName = sampleType.value();
  1068. this.firm = _firm.value();
  1069. this.ZDistance = Convert.ToSingle(ZDistance.value());
  1070. this.EDSZ = Convert.ToSingle(xEDSZ.value());
  1071. this.EDSV = Convert.ToSingle(xEDSV.value());
  1072. this.EDSA = Convert.ToSingle(xEDSA.value());
  1073. this.IsFIBDo = isFIBDo.value();
  1074. this.IsFIBAutoBC = isFIBAutoBC.value();
  1075. this.FIBB = Convert.ToSingle(xFIBB.value());
  1076. this.FIBC = Convert.ToSingle(xFIBC.value());
  1077. this.MagComp = isMagComp.value();
  1078. this.MagRange1 = Convert.ToSingle(xMagRange1.value());
  1079. this.MagCompX1 = Convert.ToSingle(xMagCompX1.value());
  1080. this.MagCompY1 = Convert.ToSingle(xMagCompY1.value());
  1081. this.MagRange2 = Convert.ToSingle(xMagRange2.value());
  1082. this.MagCompX2 = Convert.ToSingle(xMagCompX2.value());
  1083. this.MagCompY2 = Convert.ToSingle(xMagCompY2.value());
  1084. this.MagRange3 = Convert.ToSingle(xMagRange3.value());
  1085. this.MagCompX3 = Convert.ToSingle(xMagCompX3.value());
  1086. this.MagCompY3 = Convert.ToSingle(xMagCompY3.value());
  1087. this.MagRange4 = Convert.ToSingle(xMagRange4.value());
  1088. this.fMagCompX4 = Convert.ToSingle(xMagCompX4.value());
  1089. this.MagCompY4 = Convert.ToSingle(xMagCompY4.value());
  1090. this.ScanRotCor = Convert.ToSingle(scanRotate.value());
  1091. this.PixelSizeCor = Convert.ToSingle(pscor.value());
  1092. }
  1093. }
  1094. }
  1095. }