Project

General

Profile

Gatan on Windows-32 » History » Revision 6

Revision 5 (Anchi Cheng, 01/07/2014 04:52 PM) → Revision 6/14 (Anchi Cheng, 01/08/2014 11:12 AM)

h1. Gatan on Windows-32 

 * This is only known to work for Gatan camera associate with FEI microscopes.    For JEOL microscope, dmsem is used. 

 h2. Extra Package and Installation 

 |_.program/package|_.notes| 
 |TecnaiCCD.dll |(Should come with the microscope).| 

 {{include(comtypes installer)}} 

 h3. Register TecnaiCCD.dll    (It may have been registered already) 

 *    From the command prompt, run the following commands.    You may need to enter the full path of the dll: 
 <pre>REGSVR32 TecnaiCCD.dll</pre> 

 h3. Run updatecom.py 

 * From a command line window: 
 <pre>cd C:\python27\Lib\site-packages\pyscope 
 C:\python27\python.exe updatecom.py</pre> 

 * The output sould contain this output 
 <pre> 
 initializing Gatan CCD Camera done. 
 </pre> 

 h2. instruments.cfg 

 <pre> 
 [camera] 
 class: gatan.Gatan 
 zplane: 50 
 height: 4096 
 width: 4096 
 </pre> 

 * height and width depend on your specific camera 
 see [[instrumentscfg_for_22|instruments.cfg z plane configuration]] for more explanation. 

 If you have more than one camera controlled through DM, you need to find its id and use class gatan.Gatan0 and gatan.Gatan1 etc in the configuration to distinguish them and assign different zplanes so the higher ones can retract when the lower one is asked to acquire image.    see #2201 for history of this issue 

 h2. Setup 

 * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. 
 * Set the [[Low_dose_shutter_configuration_for_Gatan_camera_in_Digital_Micrograph_program|shutter configuration in DM]] to protect the specimen when camera is not taking images 

 h2. Testing with pyscope 

 In python command 
 <pre> 
 form pyscope import gatan 
 g = gatan.Gatan() 
 g.setExposureTime(200) 
 g.getImage() 
 </pre> 

 You should get a bunch of numbers in a numpy array. 

 h2. Programs to open before Leginon Client: Digital Micrograph