Project

General

Profile

Unable to initialize Gatan interface

Added by Anonymous almost 15 years ago

Hi there!

I am having problems with the Gatan CCD.

Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyScope import tecnai
>>> mytem = tecnai.Tecnai()
>>> mytem.getMagnification()
4800
>>>
>>> from pyScope import gatan
>>> myccd = gatan.Gatan()
Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "c:\Program Files\python\Lib\site-packages\pyScope\gatan.py", line 33, in __init__

raise RuntimeError('unable to initialize Gatan interface')

RuntimeError: unable to initialize Gatan interface
>>>

I have registered the TecnaiCCD typelib successfully with makepy.py. (TecnaiCCD 1.0 Type Library)

We are using a Gatan US 4000 that is called "CCD" in the Tecnai UI. There is also another CCD called "GIF CCD" but we won't use it with Leginon...

Any ideas?

Thanks for your help!

-Matthias Brunner


Replies (3)

Re: Unable to initialize Gatan interface - Added by Anonymous almost 15 years ago

Problem solved...Digital Micrograph had to be started and CCD inserted...

Re: Unable to initialize Gatan interface - Added by Anonymous over 14 years ago

We also encounter the problem that it's unable to initialize the Gatan interface. The error information is the same as mjb, However, we cannot solve it by start Digital Micrograph and insert CCD. We don't know how to solve it.

Besides the error information from mjb.
There is another some error imformation.

C:\Python25\Lib\site-packages\pyScope>C:\Python25\python.exe updatecom.py
Generating .py files from type libraries...
Tecnai Scripting: failed GenerateFromTypeLibSpec
TOM Moniker: failed GenerateFromTypeLibSpec
Tecnai Low Dose Kit: failed GenerateFromTypeLibSpec
Gatan CCD Camera: failed GenerateFromTypeLibSpec
Done.
enter to quit.

Although when excutes the updatecom.py, all the .py files are failed to generating, we find that, in the python interface, we are able to initialize the Tecnai interface, but unbale to Gatan.

Re: Unable to initialize Gatan interface - Added by Anchi Cheng over 14 years ago

Zhongjun,
Please give us more details of the results of the step 6 in this post where files are generated by selecting "TecnaiCCD typelib".
Did you get a file in gen_by folder? Open it up to make sure that it is not an empty file. You only said that it was successful.

http://emg.nysbc.org/bb/viewtopic.php?f=8&amp;amp;t=286#p756

On our computer, the generated file has a long name started with "BE". It is 17 kB. It is a .py file and if you open it with
a text editor or IDLE, it says "TecnaiCCD" in one of the first few lines.

If you did make modification in pyScope after that, please also tell us what you did.

As for starting Digital Micrograph. You need to have it on through the Leginon run or any call to Gatan.gatan.

Does DM control one camera or more than one?

Anchi

    (1-3/3)