Project

General

Profile

Windows Installation All » History » Revision 15

Revision 14 (Anchi Cheng, 11/08/2013 01:27 PM) → Revision 15/65 (Anchi Cheng, 11/08/2013 01:31 PM)

h1. Windows Installation 

 * 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. 

 {{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 SEMCCD as Digital Micrograph plugin (Gatan K2 camera only) 

 {{include(Install_SerialEM_DigitalMicrograph_plugin)}} 



 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|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 path_to\myami-VERSION\myami\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 

 h2. Install SEMCCD as Digital Micrograph plugin (Gatan K2 camera only) 

 {{include(Install_SerialEM_DigitalMicrograph_plugin)}} 

 h2. Register the Tietz ping callback function (Tietz camera only) 

 * From a command line window: 

 <pre>cd C:\python27\Lib\site-packages\pyscope 
 C:\python27\python.exe tietzping.py</pre> 

 h2. camc.ini setup (Tietz camera only) 

 {{include(CAMC_ini_setup)}} 


 ______ 

 [[Windows_Package_Requirement_30|< Package Requirement]] | [[Windows_Myami_Configuration| Configurations related to Leginon >]] 


 ______