Project

General

Profile

Digital Camera NOT found after DigitalMicrograph Re-Installation

Added by Long Gui about 12 years ago

To whom it may concern,

We had faced a problem that our Gatan CCD control software DigitalMicrograph usually crashed so we have re-installed the DigitalMicrography software package (version 1.4.5, the same version with previous one). And now it seem that the DigitalMicrography works okay with TEM interface now. However, the Leginon could not recognize the digital camere any more.

We are very sure that the Leginon works fine with the old DigitalMicrography software package. We also installed the tecnaiccd.dll for the newly-installed DigitalMicrography but the problem still exists. Could you please help us on that issue? Do we have to re-install the entire Leginon software package?

Thanks a lot in advance!

Long


Replies (12)

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Anchi,

We rerun updatacom.py inside the folder C:\python25\Lib\site-packages\pyscope

And the results are shown as the following:

That result seems Okay?

Thanks,
Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Jim Pulokas about 12 years ago

Hi Long,
The output looks ok, but it may not be enough after your reinstall. If it is still not connecting to Leginon, try the following:

  • search C: drive for any extra copies of tecnaiccd.dll and make sure you only have one installed. remove any extras.
  • register again the tecnaiccd.dll from a windows command terminal (cmd.exe). Be sure to be logged in as administrator when you do this (or with admin privileges, start cmd.exe as administrator). The command will be (substitute actual location of tecnaiccd.dll):
    regsvr32 C:\...\tecnaiccd.dll
  • now run updatecom.py again. Output should look the same as before: "initializing Gatan CCD camera done."
  • Test it out, be sure DigitalMicrograph is running before starting leginon.

Let us know what happens.

Jim

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Jim,

Thank you very much for your reply.

I did as you suggested. The tecnaiccd.dll was installed and the updatecom.py also showed the right "initializing Gatan CCD camera done". However, the problem still exists and Leginon could not find the CCD camera.

When I search "tecnaiccd.dll" inside the C:\ drive. I found several files within the same name. I only kept the one inside the folder "c:\tecnai\plugins" and move the others into the recycle bin. I am wondering whether I kept the right one or not...

Thanks a lot again, I am looking forwards to your reply!

Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Jim Pulokas about 12 years ago

Long,
Try this:
start python command line and run these commands:

import pyscope.registry
camera = pyscope.registry.getClass('Gatan')()

Can you tell me what errors you get?
Jim

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Jim,

Sorry for not getting back to you sooner. I just run these commands in python.exe

And the results show as the following image:

Would you check this please? It looks like that there is something wrong with the initiation of the interface.

Thanks a lot!

Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Jim Pulokas about 12 years ago

Next try to make a direct connection to the camera interface from a python command line:

import win32com.client
camera = win32com.client.dynamic.Dispatch('TecnaiCCD.GatanCamera.2')
Let me know what the error looks like.

Also, try running updatecom.py one more time, then look for this file which it should create: C:\Python25\Lib\site-packages\win32com\gen_py\BE24...py (I abbreviated the long file name). Just make sure it has a new time stamp to prove that it was just written by updatecom.py. Also, attach that file here (just the .py, not the .pyc)

Jim

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Jim,

Thank you very much for your help. I have run the direct connection and attached the results below.

Also I find the BE24...py file and put it here.

Would you please check them? Thanks a lot.

Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Jim Pulokas about 12 years ago

Long,

Can you also attach the tecnaiccd.dll that you are using. Then I can try it here.

If I do not figure this out soon, do you think you could allow some kind of remote access for me to investigate the problem directly? I could ssh to one of your systems and then use VNC to access the Windows system. Or are there too many firewalls to get through? Let me know if that seems possible and is there any time for this next week?

Jim

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Jim,

I am attaching the tecnaiccd.dll file as the attached file.

I have not tried any remote access before but I think your suggestion is very worth trying. I can connect the TEM computer to the Internet and install VNC remote client. When it is ready, I will you the ID and password so that you can connect to TEM computer.

Thanks,
Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Long Gui about 12 years ago

Hi Jim,

I just met TEM engineer manager from FEI. And he found this problem might due to TIA program (TEM Image and Analysis) because when we start TIA program it shows "can not find CCD camera", which is pretty similar with our Leginon problem.

So we re-install the TIA program and after restarting the computer, the Leginon could find the CCD camera again!

I am quite sorry to take up your so much time and effort on this problem. Thank you very much for your help!

Thanks,
Long

RE: Digital Camera NOT found after DigitalMicrograph Re-Installation - Added by Jim Pulokas about 12 years ago

That is great that you fixed it! And good to have the solution recorded here for others with the same problem.
Jim

    (1-12/12)