Installation on the microscope computer » History » Version 10
Anchi Cheng, 05/18/2010 10:54 PM
1 | 1 | Amber Herold | h1. Additional installation on the microscope computer |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | The full leginon and its supporting packages need to be installed on the Windows computer |
||
8 | controlling the microscope. Additional programs are required for communication with the CCD |
||
9 | and extra functions for Tecnai scripting not supported as default by FEI Tecnai |
||
10 | microscopes |
||
11 | |||
12 | |||
13 | |||
14 | h2. Required supporting programs for the CCD camera from camera makers |
||
15 | |||
16 | |||
17 | |||
18 | Install and register the following programs for CCD cameras from the two makes: |
||
19 | |||
20 | |||
21 | |||
22 | |_.Camera Make:|_.File:| |
||
23 | | Gatan|TecnaiCCD.dll| |
||
24 | | Tietz|CAMC4.exe*| |
||
25 | |||
26 | |||
27 | 5 | Amber Herold | *Note:* We have experienced slowness of the CAMC4.exe comes with later version Tecnai TUI/TIA. Replacing it with an earlier version of CAMC4.exe resolved the problem. |
28 | 1 | Amber Herold | |
29 | |||
30 | |||
31 | |||
32 | |||
33 | 10 | Anchi Cheng | h2. Additional installation required from NRAMM for Gatan camera or camera that uses TIA |
34 | 1 | Amber Herold | |
35 | |||
36 | |||
37 | For Gatan Camera or FEI Eagle Camera that uses TIA, comarray package need to be install |
||
38 | with python |
||
39 | |||
40 | |||
41 | |||
42 | |_.SVN Package Name|_.Installed Python Package Name|_.Reason for update:| |
||
43 | |comarray|comarray|com module output conversion to array| |
||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | 10 | Anchi Cheng | * comarray is part of the checkout package you downloaded from our repository |
51 | <pre>cd Leginon2.0/comarray |
||
52 | 1 | Amber Herold | svn co http://emg.nysbc.org/svn/comarray/branches/leg1.6 comarray</pre> |
53 | |||
54 | * Start a command line Window from Start Menu |
||
55 | |||
56 | |||
57 | * Install the package with commands such as |
||
58 | 10 | Anchi Cheng | <pre>cd Your_Download_Place\Leginon2.0\comarray |
59 | 1 | Amber Herold | c:\\python25\python.exe setup.py install</pre> |
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | h2. Supporting programs for film exposure |
||
70 | |||
71 | |||
72 | |||
73 | Install the following if you need film exposure on FEI Tecnai TEM through Leginon, |
||
74 | 9 | Amber Herold | available through FEI. Please contact Max Otten: mto@feico.com and request |
75 | 1 | Amber Herold | for adaexp.exe that works with your version of Tecnai user interface program. |
76 | |||
77 | |||
78 | |||
79 | |_.Name:|_.File:| |
||
80 | | exposure adaptor|adaexp.exe| |
||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | h2. Register adaexep.exe |
||
89 | |||
90 | |||
91 | |||
92 | * From the command prompt: |
||
93 | <pre>adaexp.exe /regserver</pre> |
||
94 | |||
95 | 10 | Anchi Cheng | * From the program start menu under pyScope or C:\Python25\Lib\site-packages\pyscope\ |
96 | 1 | Amber Herold | <pre>updatecom.py</pre> |
97 | |||
98 | |||
99 | |||
100 | |||
101 | |||
102 | |||
103 | |||
104 | |||
105 | h2. Modify instruments.cfg: |
||
106 | |||
107 | * Modify the file instruments.cfg in the installed pyScope directory to that for |
||
108 | your microscope and camera. For example, if your microscope uses Tecnai Scripting |
||
109 | Interface and you have a Gatan camera that you interface through DigitalMicrograph: |
||
110 | 9 | Amber Herold | |
111 | 1 | Amber Herold | |
112 | |||
113 | <pre>[tem] |
||
114 | class: tecnai.Tecnai |
||
115 | [camera] |
||
116 | class: gatan.Gatan</pre> |
||
117 | |||
118 | 10 | Anchi Cheng | The file contains other examples of microscope and camera drivers that we distribute from NRAMM. |
119 | 1 | Amber Herold | |
120 | h2. Run updatecom.py |
||
121 | |||
122 | From a command line window: |
||
123 | |||
124 | <pre>cd C:\python25\Lib\Site-Packages\pyScope |
||
125 | C:\python25\python.exe updatecom.py</pre> |
||
126 | |||
127 | 10 | Anchi Cheng | The python window appears should say show the required type libraries it found: |
128 | <pre> |
||
129 | Generating .py files from type libraries... |
||
130 | initializing TEM Scripting Error, cannot find typelib for "TEM Scripting" |
||
131 | initializing Tecnai Scripting done. |
||
132 | initializing TOM Moniker done. |
||
133 | initializing Tecnai Low Dose Kit done. |
||
134 | initializing Tecnai Exposure Adaptor done. |
||
135 | 1 | Amber Herold | |
136 | 10 | Anchi Cheng | initializing Tietz CCD Camera done. |
137 | </pre> |
||
138 | The output is of course depending on what is available on your microscope computer. You should have either "Tecnai Scripting" or the pairing of "TEM Scripting" and "TOM Moniker". |
||
139 | 1 | Amber Herold | |
140 | 10 | Anchi Cheng | The script should generate a few files in C:\\python25\Lib\win32com\gen_py with seemly scrambled names such as BC0A2B03-19FF-11D3-AE00-00A024CBA50Cx0x1x9.py |
141 | 1 | Amber Herold | |
142 | |||
143 | h2. Additional setup on Tietz PXL camera (optional) |
||
144 | |||
145 | |||
146 | The actual Tietz PXL camera dimension is slightly larger than 2048 x 2048. If you'd like |
||
147 | to take the images using the maximum of 2048 x 2048 pixels, you may modify the function that |
||
148 | get camera dimension in tietz.py of pyScope package. |
||
149 | |||
150 | |||
151 | * Go to C:\Python25\Lib\site-packages\pyScope\ |
||
152 | |||
153 | |||
154 | * Edit tietz.py with a plain text editor |
||
155 | |||
156 | |||
157 | * Find the lines: |
||
158 | |||
159 | |||
160 | |||
161 | <pre> def getCameraSize(self): |
||
162 | # {'type': dict, 'values': {'x': {'type': int}, 'y': {'type': int}}}} |
||
163 | x = self._getParameterValue('cpTotalDimensionX') |
||
164 | y = self._getParameterValue('cpTotalDimensionY') |
||
165 | return {'x': x, 'y': y} |
||
166 | </pre> |
||
167 | |||
168 | |||
169 | * Change the last line to: |
||
170 | |||
171 | |||
172 | |||
173 | <pre> return {'x': 2048, 'y': 2048}</pre> |
||
174 | |||
175 | |||
176 | h2. Additional Software (Optional): |
||
177 | |||
178 | |||
179 | TightVNC (http://www.tightvnc.com) if you get tired of going into the microscope room |
||
180 | just to open the column valves. |
||
181 | 2 | Amber Herold | |
182 | |||
183 | ______ |
||
184 | |||
185 | [[Windows Installation|< Windows Installation]] | [[Next Steps|Next Steps >]] |
||
186 | 3 | Amber Herold | |
187 | |||
188 | ______ |