Gatan on Windows-32 with TecnaiCCDdll » History » Version 3
Anchi Cheng, 10/31/2017 11:39 PM
1 | 1 | Anchi Cheng | h1. Gatan on Windows-32 with TecnaiCCD.dll |
---|---|---|---|
2 | |||
3 | * TecnaiCCD.dll is provided by FEI to work with Gatan camera. This installation instruction is known to work when the camera control is on |
||
4 | 2 | Anchi Cheng | the same computer as the FEI scope control. |
5 | |||
6 | * For JEOL microscope, or for camera separated from scope PC, [[Gatan on Windows-32 with dmsem]] may be easier. |
||
7 | 1 | Anchi Cheng | |
8 | h2. Extra Package and Installation |
||
9 | |||
10 | |_.program/package|_.notes| |
||
11 | |TecnaiCCD.dll |(Should come with the microscope).| |
||
12 | |||
13 | {{include(comtypes installer)}} |
||
14 | |||
15 | 3 | Anchi Cheng | h2. Register TecnaiCCD.dll (Gatan 32-bit DM on FEI microscope), CAMC4.exe (For Tietz camera), and adaexp.exe (For film exposure) |
16 | 1 | Anchi Cheng | |
17 | 3 | Anchi Cheng | * From the command prompt, run the following commands. You may need to enter the full path of the exe or dll: |
18 | <pre>adaexp.exe /regserver |
||
19 | CAMC4.exe /regserver |
||
20 | REGSVR32 TecnaiCCD.dll</pre> |
||
21 | |||
22 | In one case, we also had to [[find and register a dll file as command components in Windows|find and register TEM Scripting]] for an FEI scope |
||
23 | |||
24 | h2. install comtypes if this is for the microscope, or any camera other than Gatan K2 Summit* nor TVIPS. |
||
25 | |||
26 | {{include(Comtypes_installer)}} |
||
27 | |||
28 | {{include(Comtypes_installation)}} |
||
29 | |||
30 | h2. Modify comtypes if it is used: |
||
31 | |||
32 | 1 | Anchi Cheng | |
33 | h2. instruments.cfg |
||
34 | |||
35 | <pre> |
||
36 | [camera] |
||
37 | class: gatan.Gatan |
||
38 | zplane: 50 |
||
39 | height: 4096 |
||
40 | width: 4096 |
||
41 | </pre> |
||
42 | |||
43 | * height and width depend on your specific camera |
||
44 | see [[instrumentscfg_for_22|instruments.cfg z plane configuration]] for more explanation. |
||
45 | |||
46 | If you have more than one camera controlled through DM, you need to find its id and use class gatan.Gatan0 and gatan.Gatan1 etc in the configuration to distinguish them and assign different zplanes so the higher ones can retract when the lower one is asked to acquire image. see #2201 for history of this issue |
||
47 | |||
48 | h2. Setup |
||
49 | |||
50 | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
||
51 | * Set the [[Low_dose_shutter_configuration_for_Gatan_camera_in_Digital_Micrograph_program|shutter configuration in DM]] to protect the specimen when camera is not taking images |
||
52 | |||
53 | h2. Testing with pyscope |
||
54 | |||
55 | In python command |
||
56 | <pre> |
||
57 | from pyscope import gatan |
||
58 | g = gatan.Gatan() |
||
59 | g.setExposureTime(200) |
||
60 | g.getImage() |
||
61 | </pre> |
||
62 | |||
63 | You should get a bunch of numbers in a numpy array. |
||
64 | |||
65 | h2. Programs to open before Leginon Client: Digital Micrograph |