Actions
Eagle camera installation and setup » History » Revision 6
« Previous |
Revision 6/11
(diff)
| Next »
Anchi Cheng, 11/04/2015 04:29 PM
TIA-controlled camera (FEI Eagle)¶
Extra Package and Installation¶
program/package | notes |
---|---|
Tia.dll | (Should come with the microscope) |
Program | package web site | local copy of win32 installer |
comtypes 0.6.2 | http://sourceforge.net/projects/comtypes" | comtypes-0.6.2.win32.exe |
Run checkcom.py¶
- From a command line window:
cd C:\python27\Lib\site-packages\pyscope C:\python27\python.exe checkcom.py
- The output sould contain this output
Found ESVision.Application done.
instruments.cfg¶
Eagle:
[camera] class: tia.TIA zplane: 50 height: 4096 width: 4096
Setup¶
- Set camera configuration to give the standard Leginon orientation.
Programs to open before Leginon Client: TIA.¶
Testing with pyscope¶
In python command
form pyscope import tia g = tia.TIA() g.setExposureTime(200) g.getImage()
You should get a bunch of numbers in a numpy array.
Trouble shooting¶
Some version of TIA may give an error of that at the end of it says
_ctypes.COMError: (-2147352567, 'Exception occurred.', (u"Camera 'tia' does not exist.''.u'ESVision', None, 0L, 0))
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).
from pyscope import tia t = tia.get_tiaccd() c = t.ccd.Camera
You should get the camera name as the output.
With the name, edit pyscope/tia.py and change in the class TIA,
from
camera_name='tia'
to
camera_name='THE NAME YOU FOUND'
Updated by Anchi Cheng about 9 years ago · 6 revisions