Project

General

Profile

Eagle camera installation and setup » History » Revision 10

Revision 9 (Anchi Cheng, 10/31/2017 11:48 PM) → Revision 10/11 (Anchi Cheng, 10/31/2017 11:50 PM)

h1. TIA-controlled camera (FEI Eagle) 

 

 h2. Extra Package and Installation 

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

 {{include(comtypes installer)}} 

 

 {{include(comtypes_installation)}} 

 You should have 

 <pre> 
 TIA or ESVision 
 </pre> 

 h2. instruments.cfg 

 Eagle: 
 <pre> 
 [camera] 
 class: tia.TIA_Eagle 
 zplane: 50 
 height: 4096 
 width: 4096 
 </pre> 

 h2. Setup 

 * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. 

 h2. Programs to open before Leginon Client: TIA. 

 h2. Testing with pyscope 

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

 {{include(pyscope_test_result array)}} 

 h2. Trouble shooting 

 Some version of TIA may give an error of that at the end of it says 

 <pre> 
 _ctypes.COMError: (-2147352567, 'Exception occurred.', (u"Camera 'tia' does not exist.''.u'ESVision', None, 0L, 0)) 
 </pre> 
 This happens because TIA scripting (ESVision) knows the camera by a different name. 

 The correct name may be in TUI/CCDCamera panel.    Or you can find out from these python commands when the camera in question is active (You can make it active by acquire an image in TIA). 
 <pre> 
 from pyscope import tia 
 t = tia.get_tiaccd() 
 c = t.ccd.Camera 
 </pre> 
 You should get the camera name as the output. 

 With the name, edit pyscope/tia.py and change in the class TIA_Eagle, 
 from 
 <pre> 
     camera_name='BM-Eagle' 
 </pre> 
 to 
 <pre> 
     camera_name='THE NAME YOU FOUND' 
 </pre>