AutoIt program and script compilation » History » Version 12
Anchi Cheng, 10/12/2021 12:31 PM
1 | 2 | Anchi Cheng | h1. AutoIt program, script compilation and testing |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | 12 | Anchi Cheng | {{include{Auoit program script compilation)}} |
4 | 10 | Anchi Cheng | |
5 | 9 | Anchi Cheng | h4. There are two versions Exporting Tia Series: TiaExportSeries.au3 and TiaExportSeries2.au3. The difference is the position of the mouse click in the dialogue. Please try them and find which one works for you. |
6 | |||
7 | 2 | Anchi Cheng | h2. Add the locations of the exe files to fei.cfg of your leginon installation if you have not done so. |
8 | 1 | Anchi Cheng | |
9 | # make a copy of your_myami/pyscope/fei.cfg.template and call it fei_temp.cfg |
||
10 | # compare fei_temp.cfg with your current fei.cfg used for leginon and modify fei_temp.cfg according to your current configuration. |
||
11 | # find the entries related to AUTOIT and fill in the location of your autoit exe files. |
||
12 | |||
13 | 6 | Anchi Cheng | h2. Beamstop Testing |
14 | 1 | Anchi Cheng | |
15 | 2 | Anchi Cheng | # You can double click on BeamstopIn.exe and Beamstopout.exe to see if it does what it should be doing. |
16 | |||
17 | 6 | Anchi Cheng | h2. TUIAcquire Testing |
18 | 2 | Anchi Cheng | |
19 | # Go to TUI interface and CCD/TV Camera panel. |
||
20 | # Select BM-Ceta |
||
21 | 5 | Anchi Cheng | # Double click on TuiAcquire.exe to execute. This is most likely to fail in some of the validation steps. Make correction to these settings and try again. See the screenshot below. The items in the blue boxes are what it validate. The items in the red boxes are what it controls. |
22 | 2 | Anchi Cheng | # When all validations are passed, you should see TIA starts acquiring movie series using Acquire preset of the CCD/TV Camera panel. |
23 | 1 | Anchi Cheng | # Double click on TuiAcquire.exe again to stop movie series acquisition. |
24 | |||
25 | 5 | Anchi Cheng | !tui_acquire.png! |
26 | 2 | Anchi Cheng | |
27 | 6 | Anchi Cheng | h2. TiaExportSeries Testing |
28 | 2 | Anchi Cheng | |
29 | 3 | Anchi Cheng | # Select TEM Imaging & Analysis (TIA) Window that has the series movie acquired from TuiAcquire.exe test above. |
30 | 8 | Anchi Cheng | # Make sure Export Series Shortcut is expanded like in this screenshot (tip: Set TIA Not to Embed into Microscope UI in TUI Application Preferences so the shortcut panel will show) |
31 | 3 | Anchi Cheng | ## !TIAexport.png! |
32 | # Double click TiaExportSeries.exe |
||
33 | |||
34 | 4 | Anchi Cheng | You should see the cursor moving to the shortcut, click it and going through the export process. The script should save the series as C:\Users\supervisor\Documents\FEI\TIA\Exported Data\test_t_*.bin |
35 | 3 | Anchi Cheng | |
36 | AutoIt Script clicks Export Series shortcut icon at a relative position to the corner of the window. If you observe that the position is off, please edit the script at the line |
||
37 | <pre> |
||
38 | Local $aExportPos[2] = [47, 273] |
||
39 | </pre> |
||
40 | You can use AutoIt Window Info (part of AutoIt program installation) to find the coordinates that needs to replace 47, 273 (col, row). |