Eagle camera installation and setup » History » Version 11
Anchi Cheng, 01/10/2020 11:28 AM
1 | 2 | Anchi Cheng | h1. TIA-controlled camera (FEI Eagle) |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | h2. Extra Package and Installation |
||
4 | |||
5 | |_.program/package|_.notes| |
||
6 | |Tia.dll |(Should come with the microscope)| |
||
7 | |||
8 | {{include(comtypes installer)}} |
||
9 | |||
10 | 9 | Anchi Cheng | {{include(comtypes_installation)}} |
11 | 1 | Anchi Cheng | |
12 | 10 | Anchi Cheng | You should have |
13 | |||
14 | <pre> |
||
15 | TIA or ESVision |
||
16 | </pre> |
||
17 | |||
18 | 1 | Anchi Cheng | h2. instruments.cfg |
19 | |||
20 | Eagle: |
||
21 | <pre> |
||
22 | [camera] |
||
23 | 7 | Anchi Cheng | class: tia.TIA_Eagle |
24 | 1 | Anchi Cheng | zplane: 50 |
25 | height: 4096 |
||
26 | width: 4096 |
||
27 | </pre> |
||
28 | |||
29 | h2. Setup |
||
30 | |||
31 | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
||
32 | |||
33 | 4 | Anchi Cheng | h2. Programs to open before Leginon Client: TIA. |
34 | |||
35 | 1 | Anchi Cheng | h2. Testing with pyscope |
36 | |||
37 | In python command |
||
38 | <pre> |
||
39 | form pyscope import tia |
||
40 | 7 | Anchi Cheng | g = tia.TIA_Eagle() |
41 | 1 | Anchi Cheng | g.setExposureTime(200) |
42 | g.getImage() |
||
43 | </pre> |
||
44 | |||
45 | 8 | Anchi Cheng | {{include(pyscope_test_result array)}} |
46 | 1 | Anchi Cheng | |
47 | 4 | Anchi Cheng | h2. Trouble shooting |
48 | |||
49 | Some version of TIA may give an error of that at the end of it says |
||
50 | |||
51 | <pre> |
||
52 | _ctypes.COMError: (-2147352567, 'Exception occurred.', (u"Camera 'tia' does not exist.''.u'ESVision', None, 0L, 0)) |
||
53 | </pre> |
||
54 | This happens because TIA scripting (ESVision) knows the camera by a different name. |
||
55 | |||
56 | The correct name may be in TUI/CCDCamera panel. Or you can find out from these python commands when the camera in question is active (You can make it active by acquire an image in TIA). |
||
57 | <pre> |
||
58 | from pyscope import tia |
||
59 | t = tia.get_tiaccd() |
||
60 | c = t.ccd.Camera |
||
61 | </pre> |
||
62 | You should get the camera name as the output. |
||
63 | |||
64 | 7 | Anchi Cheng | With the name, edit pyscope/tia.py and change in the class TIA_Eagle, |
65 | 4 | Anchi Cheng | from |
66 | <pre> |
||
67 | 7 | Anchi Cheng | camera_name='BM-Eagle' |
68 | 4 | Anchi Cheng | </pre> |
69 | to |
||
70 | <pre> |
||
71 | camera_name='THE NAME YOU FOUND' |
||
72 | </pre> |