OTSSEMBruker.cpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. #include "stdafx.h"
  2. #include "OTSSEMBruker.h"
  3. namespace OTSController {
  4. // constructor
  5. COTSSEMBruker::COTSSEMBruker()
  6. : m_bConnected(FALSE)
  7. {
  8. // get bruker initialize controller
  9. m_pBrukerImplPtr = COTSBrukerImpl::GetInstance();
  10. LogTrace(__FILE__, __LINE__, _T("Init BrukerImpl..."));
  11. if (!m_pBrukerImplPtr->Init(CONTROL_TYPE::BRUKER_SEM))
  12. {
  13. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Connect: failed to call init."));
  14. //return FALSE;
  15. }
  16. }
  17. // destructor
  18. COTSSEMBruker::~COTSSEMBruker()
  19. {
  20. }
  21. // check if connected
  22. // return true if setup success
  23. BOOL COTSSEMBruker::IsConnected()
  24. {
  25. return m_bConnected;
  26. }
  27. // connect client dll
  28. BOOL COTSSEMBruker::Connect()
  29. {
  30. // connection is ok?
  31. if (!m_bConnected)
  32. {
  33. if (!m_pBrukerImplPtr->Connect())
  34. {
  35. // connection
  36. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Connect(): connecting failed."));
  37. m_pBrukerImplPtr.reset();
  38. return FALSE;
  39. }
  40. m_bConnected = TRUE;
  41. }
  42. return TRUE;
  43. }
  44. BOOL COTSSEMBruker::Disconnect()
  45. {
  46. if (m_bConnected)
  47. {
  48. m_pBrukerImplPtr->DisConnect();
  49. m_bConnected = false;
  50. return true;
  51. }
  52. else
  53. {
  54. return true;
  55. }
  56. }
  57. // set beam blank
  58. BOOL COTSSEMBruker::SetBeamBlank(long a_nBeamBlank)
  59. {
  60. // turn Bean off if a_nBeamBlank > 0
  61. if (a_nBeamBlank > 0)
  62. {
  63. if (!m_pBrukerImplPtr->SwitchSEMOff(FALSE, FALSE, TRUE))
  64. {
  65. // failed to call SwitchSEMOff method
  66. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetBeamBlank : failed to call SwitchSEMOff method."));
  67. return FALSE;
  68. }
  69. }
  70. // ok, return TRUE
  71. return TRUE;
  72. }
  73. // set beam blank
  74. BOOL COTSSEMBruker::SetBeamCurrent(BOOL a_nBeamCurrent)
  75. {
  76. // turn Bean off if a_nBeamBlank > 0
  77. if (a_nBeamCurrent )
  78. {
  79. if (!m_pBrukerImplPtr->SwitchSEMOff(FALSE,TRUE , FALSE))
  80. {
  81. // failed to call SwitchSEMOff method
  82. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetBeamBlank : failed to call SwitchSEMOff method."));
  83. return FALSE;
  84. }
  85. }
  86. // ok, return TRUE
  87. return TRUE;
  88. }
  89. // brightness
  90. BOOL COTSSEMBruker::GetBrightness(double& a_dBrightness)
  91. {
  92. // get brightness and contrast
  93. double dBrightness, dContrast;
  94. if (!m_pBrukerImplPtr->GetSEMBCData(dBrightness, dContrast))
  95. {
  96. // failed to call GetSEMBCData method
  97. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetBrightness: failed to call GetSEMBCData method."));
  98. return FALSE;
  99. }
  100. a_dBrightness = dBrightness;
  101. // ok, return TRUE
  102. return TRUE;
  103. }
  104. BOOL COTSSEMBruker::SetBrightness(double a_dBrightness)
  105. {
  106. // get current brightness and contrast
  107. double dBrightness, dContrast;
  108. if (!m_pBrukerImplPtr->GetSEMBCData(dBrightness, dContrast))
  109. {
  110. // failed to call GetSEMBCData method
  111. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetBrightness: failed to call GetSEMBCData method."));
  112. return FALSE;
  113. }
  114. // set brightness and contrast
  115. dBrightness = a_dBrightness;
  116. if (!m_pBrukerImplPtr->SetSEMBCData(dBrightness, dContrast))
  117. {
  118. // failed to call GetSEMBCData method
  119. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetBrightness: failed to call SetSEMBCData method."));
  120. return FALSE;
  121. }
  122. // ok, return TRUE
  123. return TRUE;
  124. }
  125. // contrast
  126. BOOL COTSSEMBruker::GetContrast(double& a_dContrast)
  127. {
  128. // get brightness and contrast
  129. double dBrightness, dContrast;
  130. if (!m_pBrukerImplPtr->GetSEMBCData(dBrightness, dContrast))
  131. {
  132. // failed to call GetSEMBCData method
  133. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetContrast: failed to call GetSEMBCData method."));
  134. return FALSE;
  135. }
  136. a_dContrast = dContrast;
  137. // ok, return TRUE
  138. return TRUE;
  139. }
  140. BOOL COTSSEMBruker::SetContrast(double a_dContrast)
  141. {
  142. // get current brightness and contrast
  143. double dBrightness, dContrast;
  144. if (!m_pBrukerImplPtr->GetSEMBCData(dBrightness, dContrast))
  145. {
  146. // failed to call GetSEMBCData method
  147. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetContrast: failed to call GetSEMBCData method."));
  148. return FALSE;
  149. }
  150. // set brightness and contrast
  151. dContrast = a_dContrast;
  152. if (!m_pBrukerImplPtr->SetSEMBCData(dBrightness, dContrast))
  153. {
  154. // failed to call SetSEMBCData method
  155. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetContrast: failed to call SetSEMBCData method."));
  156. return FALSE;
  157. }
  158. // ok, return TRUE
  159. return TRUE;
  160. }
  161. // working distance
  162. BOOL COTSSEMBruker::GetWorkingDistance(double& a_dWorkingDistance)
  163. {
  164. // get mag, KV and working distance
  165. double dMagnification, dHighVoltage, dWorkingDistance;
  166. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  167. {
  168. // failed to call GetSEMData method
  169. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetWorkingDistance: failed to call SetSEMData method."));
  170. return FALSE;
  171. }
  172. a_dWorkingDistance = dWorkingDistance;
  173. // ok, return TRUE
  174. return TRUE;
  175. }
  176. BOOL COTSSEMBruker::SetWorkingDistance(double a_dWorkingDistance)
  177. {
  178. // get current mag, KV and working distance
  179. double dMagnification, dHighVoltage, dWorkingDistance;
  180. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  181. {
  182. // failed to call GetSEMData method
  183. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetWorkingDistance: failed to call GetSEMData method."));
  184. return FALSE;
  185. }
  186. // set mag, KV and working distance
  187. dWorkingDistance = a_dWorkingDistance;
  188. if (!m_pBrukerImplPtr->SetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  189. {
  190. // failed to call SetSEMData method
  191. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetWorkingDistance: failed to call SetSEMData method."));
  192. return FALSE;
  193. }
  194. // ok, return TRUE
  195. return TRUE;
  196. }
  197. // high tension (KV)
  198. BOOL COTSSEMBruker::GetHighTension(double& a_dKV)
  199. {
  200. // get mag, KV and working distance
  201. double dMagnification, dHighVoltage, dWorkingDistance;
  202. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  203. {
  204. // failed to call GetSEMData method
  205. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetHighTension: failed to call SetSEMData method."));
  206. return FALSE;
  207. }
  208. a_dKV = dHighVoltage;
  209. // ok, return TRUE
  210. return TRUE;
  211. }
  212. BOOL COTSSEMBruker::SetHighTension(double a_dKV)
  213. {
  214. // get current mag, KV and working distance
  215. double dMagnification, dHighVoltage, dWorkingDistance;
  216. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  217. {
  218. // failed to call GetSEMData method
  219. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetHighTension: failed to call GetSEMData method."));
  220. return FALSE;
  221. }
  222. // set mag, KV and working distance
  223. dHighVoltage = a_dKV;
  224. if (!m_pBrukerImplPtr->SetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  225. {
  226. // failed to call SetSEMData method
  227. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetHighTension: failed to call SetSEMData method."));
  228. return FALSE;
  229. }
  230. // ok, return TRUE
  231. return TRUE;
  232. }
  233. // magnification
  234. BOOL COTSSEMBruker::GetMagnification(double& a_dMagnification)
  235. {
  236. // get mag, KV and working distance
  237. double dMagnification, dHighVoltage, dWorkingDistance;
  238. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  239. {
  240. // failed to call GetSEMData method
  241. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetMagnification: failed to call SetSEMData method."));
  242. return FALSE;
  243. }
  244. a_dMagnification = dMagnification;
  245. // ok, return TRUE
  246. return TRUE;
  247. }
  248. BOOL COTSSEMBruker::SetMagnification(double a_dMagnification)
  249. {
  250. // get current mag, KV and working distance
  251. double dMagnification, dHighVoltage, dWorkingDistance;
  252. if (!m_pBrukerImplPtr->GetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  253. {
  254. // failed to call GetSEMData method
  255. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetMagnification: failed to call GetSEMData method."));
  256. return FALSE;
  257. }
  258. // set mag, KV and working distance
  259. dMagnification = a_dMagnification;
  260. if (!m_pBrukerImplPtr->SetSEMData(dMagnification, dHighVoltage, dWorkingDistance))
  261. {
  262. // failed to call SetSEMData method
  263. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetMagnification: failed to call SetSEMData method."));
  264. return FALSE;
  265. }
  266. // ok, return TRUE
  267. return TRUE;
  268. }
  269. // scan field size
  270. BOOL COTSSEMBruker::GetScanFieldSize(double& a_dScanFieldSizeX, double& a_dScanFieldSizeY)
  271. {
  272. // get magnification
  273. double dMag = 0;
  274. if (!GetMagnification(dMag))
  275. {
  276. // failed to call GetMagnification method
  277. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetScanFieldSize: failed to call GetMagnification method."));
  278. return FALSE;
  279. }
  280. // calculate scan field size
  281. double dScanFieldSizeX, dScanFieldSizeY;
  282. if (!MagToScanFieldSize(dMag, dScanFieldSizeX, dScanFieldSizeY))
  283. {
  284. // failed to call MagToScanFieldSize method
  285. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetScanFieldSize: failed to call MagToScanFieldSize method."));
  286. return FALSE;
  287. }
  288. // calculate scan field size and set output values
  289. a_dScanFieldSizeX = dScanFieldSizeX;
  290. a_dScanFieldSizeY = dScanFieldSizeY;
  291. // ok, return TRUE
  292. return TRUE;
  293. }
  294. BOOL COTSSEMBruker::SetScanFieldSizeX(double a_dScanFieldSizeX)
  295. {
  296. // calculate magnification
  297. double dMag = 0;
  298. if (!ScanFieldSizeToMag(dMag, a_dScanFieldSizeX))
  299. {
  300. // failed to call ScanFieldSizeToMag method
  301. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetScanFieldSizeX: filed to call ScanFieldSizeToMag method."));
  302. return FALSE;
  303. }
  304. // set magnification
  305. if(!SetMagnification(dMag))
  306. {
  307. // failed to call ScanFieldSizeToMag method
  308. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetScanFieldSizeX: filed to call SetMagnification method."));
  309. return FALSE;
  310. }
  311. // ok, return TRUE
  312. return TRUE;
  313. }
  314. // high tension off
  315. // note: a_bHTValue is FALSE will turn HT off
  316. BOOL COTSSEMBruker::SetHTOnOff(BOOL a_bHTValue)
  317. {
  318. // m_pBrukerImplPtr check
  319. ASSERT(m_pBrukerImplPtr);
  320. if (!m_pBrukerImplPtr)
  321. {
  322. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetHTOnOff: m_pBrukerImplPtr is invalid."));
  323. return FALSE;
  324. }
  325. // turn HT off if a_bHTValue is FALSE
  326. if (!a_bHTValue)
  327. {
  328. if (!m_pBrukerImplPtr->SwitchSEMOff(a_bHTValue, FALSE, FALSE))
  329. {
  330. // failed to call SwitchSEMOff method
  331. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetHTOnOff : failed to call SwitchSEMOff method."));
  332. return FALSE;
  333. }
  334. }
  335. // ok, return TRUE
  336. return TRUE;
  337. }
  338. // position
  339. BOOL COTSSEMBruker::GetPositionXY(double& a_dPositionX, double& a_dPositionY, double& a_dPositionR)
  340. {
  341. // m_pBrukerImplPtr check
  342. ASSERT(m_pBrukerImplPtr);
  343. if (!m_pBrukerImplPtr)
  344. {
  345. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetPositionXY: m_pBrukerImplPtr is invalid."));
  346. return FALSE;
  347. }
  348. // get position
  349. //double dPositionX, dPositionY, dPositionZ, dTilt, dRotation;
  350. if (!m_pBrukerImplPtr->GetSEMStageData(dPositionX, dPositionY, dPositionZ, dTilt, dRotation))
  351. {
  352. // failed to call GetSEMStageData method
  353. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetPositionXY : failed to call GetSEMStageData method."));
  354. return FALSE;
  355. }
  356. // need to convert dPositionX, dPositionY from SEM position to OTS position
  357. // set output values
  358. a_dPositionX = dPositionX;
  359. a_dPositionY = dPositionY;
  360. a_dPositionR = dRotation;
  361. // ok, return TRUE
  362. return TRUE;
  363. }
  364. BOOL COTSSEMBruker::SetPositionXY(double a_dPositionX, double a_dPositionY, double a_dPositionR)
  365. {
  366. // m_pBrukerImplPtr check
  367. ASSERT(m_pBrukerImplPtr);
  368. if (!m_pBrukerImplPtr)
  369. {
  370. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY: m_pBrukerImplPtr is invalid."));
  371. return FALSE;
  372. }
  373. // get position
  374. //double dPositionX, dPositionY, dPositionZ, dTilt, dRotation;
  375. if ((dPositionX == 0 && dPositionY == 0 && dTilt==0 && dRotation==0) || (dPositionZ==0))
  376. {
  377. if (!m_pBrukerImplPtr->GetSEMStageData(dPositionX, dPositionY, dPositionZ, dTilt, dRotation))
  378. {
  379. // failed to call GetSEMStageData method
  380. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY : failed to call GetSEMStageData method."));
  381. return FALSE;
  382. }
  383. }
  384. // need to convert a_dPositionX, a_dPositionY from OTS position to SEM position
  385. // set position
  386. dPositionX = a_dPositionX;
  387. dPositionY = a_dPositionY;
  388. dRotation = a_dPositionR;
  389. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Start to SetPositionXY "));
  390. if (!m_pBrukerImplPtr->SetSEMStageData(dPositionX, dPositionY, dPositionZ, 0, 0))//in the new version(>=2.3) ,the tilt and rotation must be 0.
  391. {
  392. // failed to call SetSEMStageData method
  393. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY : failed to call SetSEMStageData method."));
  394. return FALSE;
  395. }
  396. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Finished SetPositionXY "));
  397. // ok, return TRUE
  398. return TRUE;
  399. }
  400. BOOL COTSSEMBruker::SetPositionXY(double a_dPositionX, double a_dPositionY)
  401. {
  402. // m_pBrukerImplPtr check
  403. ASSERT(m_pBrukerImplPtr);
  404. if (!m_pBrukerImplPtr)
  405. {
  406. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY: m_pBrukerImplPtr is invalid."));
  407. return FALSE;
  408. }
  409. // get position
  410. if ((dPositionX == 0 && dPositionY == 0 && dTilt == 0 && dRotation == 0) || (dPositionZ == 0))
  411. {
  412. if (!m_pBrukerImplPtr->GetSEMStageData(dPositionX, dPositionY, dPositionZ, dTilt, dRotation))
  413. {
  414. // failed to call GetSEMStageData method
  415. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY : failed to call GetSEMStageData method."));
  416. return FALSE;
  417. }
  418. }
  419. // need to convert a_dPositionX, a_dPositionY from OTS position to SEM position
  420. // set position
  421. dPositionX = a_dPositionX;
  422. dPositionY = a_dPositionY;
  423. //dRotation = a_dPositionR;
  424. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Start to SetPositionXY "));
  425. if (!m_pBrukerImplPtr->SetSEMStageData(dPositionX, dPositionY, dPositionZ, 0, 0))
  426. {
  427. // failed to call SetSEMStageData method
  428. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetPositionXY : failed to call SetSEMStageData method."));
  429. return FALSE;
  430. }
  431. LogTrace(__FILE__, __LINE__, _T("COTSSEMBruker::Finished SetPositionXY "));
  432. // ok, return TRUE
  433. return TRUE;
  434. }
  435. // spot size
  436. BOOL COTSSEMBruker::GetSpotSize(double& a_dSpotSize)
  437. {
  438. // m_pBrukerImplPtr check
  439. ASSERT(m_pBrukerImplPtr);
  440. if (!m_pBrukerImplPtr)
  441. {
  442. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetSpotSize: m_pBrukerImplPtr is invalid."));
  443. return FALSE;
  444. }
  445. // get spot size
  446. double dSpotSize;
  447. if (!m_pBrukerImplPtr->GetSEMSpotSize(dSpotSize))
  448. {
  449. // failed to call GetSEMSpotSize method
  450. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::GetSpotSize : failed to call GetSEMSpotSize method."));
  451. return FALSE;
  452. }
  453. a_dSpotSize = dSpotSize;
  454. // ok, return TRUE
  455. return TRUE;
  456. }
  457. BOOL COTSSEMBruker::SetSpotSize(double a_dSpotSize)
  458. {
  459. // m_pBrukerImplPtr check
  460. ASSERT(m_pBrukerImplPtr);
  461. if (!m_pBrukerImplPtr)
  462. {
  463. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetSpotSize: m_pBrukerImplPtr is invalid."));
  464. return FALSE;
  465. }
  466. // set spot size
  467. if (!m_pBrukerImplPtr->SetSEMSpotSize(a_dSpotSize))
  468. {
  469. // failed to call GetSEMSpotSize method
  470. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetSpotSize : failed to call SetSEMSpotSize method."));
  471. return FALSE;
  472. }
  473. // ok, return TRUE
  474. return TRUE;
  475. }
  476. // external mode
  477. BOOL COTSSEMBruker::SetScanExternal(BOOL a_bExternalOn)
  478. {
  479. // m_pBrukerImplPtr check
  480. ASSERT(m_pBrukerImplPtr);
  481. if (!m_pBrukerImplPtr)
  482. {
  483. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetScanExternal: m_pBrukerImplPtr is invalid."));
  484. return FALSE;
  485. }
  486. if (a_bExternalOn)
  487. {
  488. // turn external on
  489. if (!m_pBrukerImplPtr->SetSEMExternalOn())
  490. {
  491. // failed to call GetSEMSpotSize method
  492. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetScanExternal: failed to call SetSEMExternalOn method."));
  493. return FALSE;
  494. }
  495. }
  496. else
  497. {
  498. // turn external off
  499. if (!m_pBrukerImplPtr->SetSEMExternalOff())
  500. {
  501. // failed to call SetSEMExternalOff method
  502. LogErrorTrace(__FILE__, __LINE__, _T("COTSSEMBruker::SetScanExternal: failed to call SetSEMExternalOff method."));
  503. return FALSE;
  504. }
  505. }
  506. // ok, return TRUE
  507. return TRUE;
  508. }
  509. int COTSSEMBruker::GetExternalMode()
  510. {
  511. long r;
  512. m_pBrukerImplPtr->GetExternalScanMode(r);
  513. return r;
  514. }
  515. }