Windows Installation All » History » Version 14
Anchi Cheng, 11/08/2013 01:27 PM
1 | 1 | Anchi Cheng | h1. Windows Installation |
---|---|---|---|
2 | |||
3 | 3 | Anchi Cheng | * You need to repeat installation of the general packages for each of the computer involved in Leginon operation with addition for the camera and scope. |
4 | |||
5 | 1 | Anchi Cheng | {{include(add host)}} |
6 | |||
7 | h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure) |
||
8 | |||
9 | * From the command prompt, run the following commands. You may need to enter the full path of the exe or dll: |
||
10 | <pre>adaexp.exe /regserver |
||
11 | CAMC4.exe /regserver |
||
12 | REGSVR32 TecnaiCCD.dll</pre> |
||
13 | |||
14 | h2. Install Python and supporting packages with their installers |
||
15 | |||
16 | {{include(Windows External Package installers)}} |
||
17 | |||
18 | Excute the installer files and follow the instructions. |
||
19 | |||
20 | 14 | Anchi Cheng | h2. Install SEMCCD as Digital Micrograph plugin (Gatan K2 camera only) |
21 | 12 | Anchi Cheng | |
22 | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
||
23 | |||
24 | |||
25 | 1 | Anchi Cheng | |
26 | h2. Install the Windows Installer Files from created from source by NRAMM |
||
27 | |||
28 | {{include(Windows Myami Package installers)}} |
||
29 | |||
30 | Execute the installer files and follow the instructions. |
||
31 | |||
32 | h2. Install the packages you downloaded from NRAMM svn repository |
||
33 | |||
34 | The svn checkout is a folder containing several subpackages. You will install the python packages using python installer |
||
35 | |||
36 | h3. These are the sub-packages |
||
37 | |||
38 | |_.Name:|_.Purpose:| |
||
39 | | leginon|modular TEM image acquisition| |
||
40 | | pyami|general functions| |
||
41 | 9 | Anchi Cheng | | sinedon|database interaction| |
42 | 1 | Anchi Cheng | | pyscope|microscope control and monitoring| |
43 | | imageviewer|image viewing for tomography| |
||
44 | |||
45 | If you recall Linux processing server installation instruction, this is a bit different. Numextension and LibCV are not included. Numextension is already installed with windows installer. libcv is not required by Leginon client that this part installation is aimed for. |
||
46 | |||
47 | * Start a command line Window from Start Menu |
||
48 | |||
49 | * Install the package in each folder with commands such as |
||
50 | 10 | Anchi Cheng | <pre>cd path_to\myami-VERSION\myami\leginon |
51 | 1 | Anchi Cheng | c:\\python27\python.exe setup.py install</pre> |
52 | Then continue with the other packages, replacing leginon with the package name. See "These are the sub-packages of myami that you will install with the python installer." section above for complete list. |
||
53 | |||
54 | h2. Modify comtypes if TIA controlling camera is used or Gatan camera is controlled by older, 32-bit computer. |
||
55 | |||
56 | IMPORTANT: After installing comtypes, you must make one modification to it. The module "safearray.py" that comes with comtypes must be replaced with a modified version that we provide. You can find the custom version of safearray.py in the pyscope package. Please copy this module from pyscope into the installed comtypes folder: C:\Python2*\Lib\site-packages\comtypes\. It should replace the safearray.py that is included in comtypes. |
||
57 | |||
58 | h2. TIA controlling camera only: |
||
59 | |||
60 | (Reported by a user as a necessary step on his system. May not be necessary) Copy TecnaiCCD.dll and stdscript.dll into pyscope folder |
||
61 | |||
62 | h2. Run updatecom.py |
||
63 | |||
64 | From a command line window: |
||
65 | |||
66 | 11 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyScope |
67 | 1 | Anchi Cheng | C:\python27\python.exe updatecom.py</pre> |
68 | |||
69 | The python window appears should say show the required type libraries it found: |
||
70 | <pre> |
||
71 | Generating .py files from type libraries... |
||
72 | initializing TEM Scripting Error, cannot find typelib for "TEM Scripting" |
||
73 | initializing Tecnai Scripting done. |
||
74 | initializing TOM Moniker done. |
||
75 | initializing Tecnai Low Dose Kit done. |
||
76 | initializing Tecnai Exposure Adaptor done. |
||
77 | |||
78 | initializing Tietz CCD Camera done. |
||
79 | </pre> |
||
80 | 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". |
||
81 | |||
82 | You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it. |
||
83 | |||
84 | The script should generate a few files in C:\\python27\Lib\win32com\gen_py with seemly scrambled names such as BC0A2B03-19FF-11D3-AE00-00A024CBA50Cx0x1x9.py |
||
85 | 4 | Anchi Cheng | |
86 | 7 | Anchi Cheng | h2. Register the Tietz ping callback function (Tietz camera only) |
87 | 5 | Anchi Cheng | |
88 | * From a command line window: |
||
89 | |||
90 | 11 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
91 | 5 | Anchi Cheng | C:\python27\python.exe tietzping.py</pre> |
92 | 1 | Anchi Cheng | |
93 | 7 | Anchi Cheng | h2. camc.ini setup (Tietz camera only) |
94 | 8 | Anchi Cheng | |
95 | 6 | Anchi Cheng | {{include(CAMC_ini_setup)}} |
96 | |||
97 | 5 | Anchi Cheng | |
98 | 4 | Anchi Cheng | ______ |
99 | |||
100 | [[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]] |
||
101 | |||
102 | |||
103 | ______ |