Eagle camera installation and setup » History » Version 9
Anchi Cheng, 10/31/2017 11:48 PM
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 | h2. instruments.cfg |
||
13 | |||
14 | Eagle: |
||
15 | <pre> |
||
16 | [camera] |
||
17 | 7 | Anchi Cheng | class: tia.TIA_Eagle |
18 | 1 | Anchi Cheng | zplane: 50 |
19 | height: 4096 |
||
20 | width: 4096 |
||
21 | </pre> |
||
22 | |||
23 | h2. Setup |
||
24 | |||
25 | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
||
26 | |||
27 | 4 | Anchi Cheng | h2. Programs to open before Leginon Client: TIA. |
28 | |||
29 | 1 | Anchi Cheng | h2. Testing with pyscope |
30 | |||
31 | In python command |
||
32 | <pre> |
||
33 | form pyscope import tia |
||
34 | 7 | Anchi Cheng | g = tia.TIA_Eagle() |
35 | 1 | Anchi Cheng | g.setExposureTime(200) |
36 | g.getImage() |
||
37 | </pre> |
||
38 | |||
39 | 8 | Anchi Cheng | {{include(pyscope_test_result array)}} |
40 | 1 | Anchi Cheng | |
41 | 4 | Anchi Cheng | h2. Trouble shooting |
42 | |||
43 | Some version of TIA may give an error of that at the end of it says |
||
44 | |||
45 | <pre> |
||
46 | _ctypes.COMError: (-2147352567, 'Exception occurred.', (u"Camera 'tia' does not exist.''.u'ESVision', None, 0L, 0)) |
||
47 | </pre> |
||
48 | This happens because TIA scripting (ESVision) knows the camera by a different name. |
||
49 | |||
50 | 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). |
||
51 | <pre> |
||
52 | from pyscope import tia |
||
53 | t = tia.get_tiaccd() |
||
54 | c = t.ccd.Camera |
||
55 | </pre> |
||
56 | You should get the camera name as the output. |
||
57 | |||
58 | 7 | Anchi Cheng | With the name, edit pyscope/tia.py and change in the class TIA_Eagle, |
59 | 4 | Anchi Cheng | from |
60 | <pre> |
||
61 | 7 | Anchi Cheng | camera_name='BM-Eagle' |
62 | 4 | Anchi Cheng | </pre> |
63 | to |
||
64 | <pre> |
||
65 | camera_name='THE NAME YOU FOUND' |
||
66 | </pre> |