Project

General

Profile

Windows Setup After Software Installation » History » Revision 2

Revision 1 (Anchi Cheng, 10/31/2013 04:53 PM) → Revision 2/9 (Anchi Cheng, 10/31/2013 08:25 PM)

h1. Windows Setup After Software Installation 

 h2. Additional setup on Tietz cameras 

 Register the Tietz ping callback function.    From a command line window: 

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

 Troubleshooting Tietz cameras: 

 {{include(Tietz_camera_trouble_shoot)}} When Leginon initializes the camera, a program called CAMC4 should start automatically in the backgound.    This is confirmed by the little camera icon showing up in the system tray in the lower right of the screen.    Also, task manager can be started to confirm CAMC4 is running.    Sometimes problems occur if more than one CAMC4 is running at the same time, so task manager will help identify this. 

 CAMC4 has its own configuration file "CAMC.ini" that will normally be set up already, but you can search for it on your computer and confirm that everything looks right.    It will have configuration parameters for several cameras and only one of them will be activated.    The only parameter that may need some adjustment is the readout geometry, which affects the rotation and mirror of the image. 

 If Leginon is not initializing the camera or not getting proper images, you should first test image acquisition using TVIPS software to make sure it is not a hardware issue.    Use TCL or there is a test program called TestMFCCamera that can acquire an image and test the CAMC4 operation. 

 h2. For strange dimension cameras 

 Unless it is Gatan K2 where it uses flooring when dealing determining camera dimension when binning, you will do better specify a value that can be divided by power of 2 in width and height in instruments.cfg.    Examples of this type of configuration can be found in some Tietz camera.    Use Tietz's image acquisition software to find out what they use as a guide. 

 h2. Create Leginon Admin and Leginon Client shortcut in Start menu menu under Leginon 


 This instruction applies to Windows XP. 


  * Go to C:\Documents and Settings\All Users\Start Menu\Programs\ and create a new 
 folder named Leginon. 


  * In another window, go to 
  <pre>C:\Python27\Lib\site-packages\leginon</pre> 


  * Create a shortcut from start-leginon.py as "Leginon Admin" and a shortcut from launcher.py as "Leginon Client". 


  * Move the two shortcuts into 
  <pre>C:\Documents and Settings\All Users\Start Menu\Programs\Leginon</pre> 



 h2. Mapping Drives (Optional): 

 Although we don't recommend it, it is possible to run minimal Leginon directly on the Windows machine,    Since the database and web servers are not there, you probably will be saving the images through a Samba server on a network drive also available to the Linux machine.    If you do so, you will need to map the network drive. For example, if your Samba server has a hostname your_smbserver, and you have set up a share called [your_share_point] which points to /your_data_path/ and leginon data will be saved under a folder in /your_data_path/leginon/. 

 *    Start, My Computer 


 *    Tools menu, Map network drive 


 *    Use an unmapped drive such as Z: 

  Enter shared path in Windows format as 
  <pre>\\your_smbserver\your_share_point</pre> 


 *    Add the drive and the Linux path to leginon.cfg on the Windows machine as 
  <pre>[Drive Mapping] 
 Z:/your_data_path</pre> 


 *    Add image path to leginon.cfg on the Windows machine in Linux format as 
  <pre>[Images] 
 path:/your_data_path/leginon</pre> 


 h2.    Additional Software (Optional): 

 TightVNC (http://www.tightvnc.com) if you get tired of going into the microscope room just to open the column valves.