Project

General

Profile

Additional work at the computer controlling the microscope and camera (Window) » History » Revision 5

Revision 4 (Anchi Cheng, 05/23/2010 10:02 PM) → Revision 5/10 (Anchi Cheng, 05/23/2010 10:14 PM)

h1. Upgrade at the computer controlling the microscope and camera (Window) 




 By switching to svn package check out, you now need to install svn on Windows to get the 
 updated packages. Because numextension and libCV requires extra compiler, we have created 
 window installer for them for python 2.5 and made them available through    "http://www.leginon.org/":http://www.leginon.org/ 


 See [[Installation Troubleshooting]] and    "Leginon Bulletin Board":http://emg.nysbc.org/bb/viewforum.php?f=2    searching 
 for "install" if you run into problems. 



 h2. Packages required from NRAMM 



 Here are the packages you need to install with python installer 



 |_.SVN Package Name|_.Installed Python Package Name|_.Reason for update:| 
 |leginon|Leginon|new features| 
 |pyami|pyami|clean up| 
 |sinedon|sinedon|new stuff| 
 |pyScope|pyScope|new instrument configuration| 
 |ImageViewer|ImageViewer|updated and required for tomography| 
 |comarray|comarray|new for Gatan and Eagle camera| 



 




 Because numextension and libCV requires extra compiler, we have created window installer 
 for them for python 2.5 and made them available through    "http://www.leginon.org/":http://www.leginon.org/ 



 |_.Downloadfile Name|_.Installed Python Package File|_.Reason for update:| 
 |NumExtension-1.2.0.win32-py2.5.exe|numextension.pyd|clean up| 
 |libCV-0.2.win32-py2.5.exe|libCV.pyd|bug fixes| 







 h2. Uninstall your existing packages: 



 Although new installation overwrite the old in most cases, problem has been observed in 
 the past. Therefore, it is best to remove the old files before new installation. 


 Use "Add or Remove Programs" application in "Control Panel" to do this. Leginon related 
 packages are shown with prefix "Python 2.5" 


 If you didn't use Installer to install previously, the packages may not show up in the 
 Programs list. Simply remove the folder containing the old packages in this case. 





 h2. Download and install SVN client program: 



 By switching to svn package check out, you now need to install svn client on Windows to 
 get the updated packages. We recommand TortoiseSVN    "http://tortoisesvn.tigris.org/":http://www.leginon.org/ . 





 h2. Check out SVN Source Files from the depository 



 Use your mouse to do the following 
 *Create Leginon-1.6-ALL directory somewhere at your convenience 
 *Change directory into Leginon-1.6-ALL 
 *Right-click the mouse botton in this directory window and select Tortoise svn 
 Checkout in the menu:!http://emg.nysbc.org/software/leginon/images/images/svnmenu.png! 
 *Set up svn checkout window like this for each of the leginon package!http://emg.nysbc.org/software/leginon/images/images/svnco.png! 






 h2. Install the packages you downloaded from NRAMM svn depository 





 * Start a command line Window from Start Menu 


 * Reinstall the package in each folder with commands such as 
 <pre>cd Your_Download_Place\Leginon-1.6-ALL\leginon 
 c:\\python25\python.exe setup.py install</pre> 









 h2. Download the two Window Installer Files from Leginon website 


 "http://www.leginon.org/":http://www.leginon.org/ 





 h2. Install individual packages 



 Excute the installer files and follow the instruction. 

 Additional Package required from NRAMM for Gatan camera or camera that uses TIA 

 comarray package need to be install with python 

 h2. Modify instruments.cfg: 

 Modify the file instruments.cfg in the installed pyScope directory. 

 * Remove the "Sim TEM" and "Sim Cam" modules.    These are not needed on the microscope and could cause problem during operation if not checked every time. 

 * Add the real tem and camera.    For example, if your microscope uses Tecnai Scripting Interface and you have a Gatan camera that you interface through DigitalMicrograph: 

 <pre> 
 [tem] 
 class: tecnai.Tecnai 
 [camera] 
 class: gatan.Gatan 
 The file contains other examples of microscope and camera drivers that we distribute from NRAMM. 
 </pre> 

 h2. Run updatecom.py 

 From a command line window: 

 <pre> 
 cd C:\python25\Lib\Site-Packages\pyScope 
 C:\python25\python.exe updatecom.py 
 </pre> 

 This should generate a few files, including tecnaicom.py, gatancom.py and tietzcom.py, in the same directory.