Project

General

Profile

Actions

Eagle camera installation and setup » History » Revision 4

« Previous | Revision 4/11 (diff) | Next »
Anchi Cheng, 03/19/2015 12:17 AM


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 updatecom.py

  • From a command line window:
    cd C:\python27\Lib\site-packages\pyscope
    C:\python27\python.exe updatecom.py
  • The output sould contain one of these output
    Found ES Vision 3.0 Type Library done.
    Found ES Vision 3.1 Type Library done.
    

instruments.cfg

Eagle:

[camera]
class: tia.TIA
zplane: 50
height: 4096
width: 4096

Setup

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 almost 10 years ago · 4 revisions