Windows Installation All » History » Revision 2
Revision 1 (Anchi Cheng, 10/31/2013 04:45 PM) → Revision 2/65 (Anchi Cheng, 10/31/2013 04:48 PM)
h1. Windows Installation
{{include(add host)}}
h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure)
* From the command prompt, run the following commands. You may need to enter the full path of the exe or dll:
<pre>adaexp.exe /regserver
CAMC4.exe /regserver
REGSVR32 TecnaiCCD.dll</pre>
h2. Install Python and supporting packages with their installers
{{include(Windows External Package installers)}}
Excute the installer files and follow the instructions.
h2. Install the Windows Installer Files from created from source by NRAMM
{{include(Windows Myami Package installers)}}
Execute the installer files and follow the instructions.
h2. Install the packages you downloaded from NRAMM svn repository
The svn checkout is a folder containing several subpackages. You will install the python packages using python installer
h3. These are the sub-packages
|_.Name:|_.Purpose:|
| leginon|modular TEM image acquisition|
| pyami|general functions|
| sinedon|Leginon/database interaction|
| pyscope|microscope control and monitoring|
| imageviewer|image viewing for tomography|
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.
* Start a command line Window from Start Menu
* Install the package in each folder with commands such as
<pre>cd Your_Download_Place\LeginonTrunk\leginon
c:\\python27\python.exe setup.py install</pre>
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.
h2. Modify comtypes if TIA controlling camera is used or Gatan camera is controlled by older, 32-bit computer.
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.
h2. TIA controlling camera only:
(Reported by a user as a necessary step on his system. May not be necessary) Copy TecnaiCCD.dll and stdscript.dll into pyscope folder
h2. Run updatecom.py
From a command line window:
<pre>cd C:\python27\Lib\Site-Packages\pyScope
C:\python27\python.exe updatecom.py</pre>
The python window appears should say show the required type libraries it found:
<pre>
Generating .py files from type libraries...
initializing TEM Scripting Error, cannot find typelib for "TEM Scripting"
initializing Tecnai Scripting done.
initializing TOM Moniker done.
initializing Tecnai Low Dose Kit done.
initializing Tecnai Exposure Adaptor done.
initializing Tietz CCD Camera done.
</pre>
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".
You will only find Tecnai Exposure Adaptor (Scripting for film exposure) if you ask FEI for it.
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
{{include(locate global config directory on Windows)}}