Gatan on Windows-32 with TecnaiCCDdll » History » Version 1
Anchi Cheng, 02/02/2016 01:04 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 | the same computer as the FEI scope control. For JEOL microscope, or for camera separated from scope PC, [[Gatan on Windows-32 with dmsem]] may be easier. |
||
5 | |||
6 | h2. Extra Package and Installation |
||
7 | |||
8 | |_.program/package|_.notes| |
||
9 | |TecnaiCCD.dll |(Should come with the microscope).| |
||
10 | |||
11 | {{include(comtypes installer)}} |
||
12 | |||
13 | h3. Register TecnaiCCD.dll (It may have been registered already) |
||
14 | |||
15 | * From the command prompt, run the following commands. You may need to enter the full path of the dll: |
||
16 | <pre>REGSVR32 TecnaiCCD.dll</pre> |
||
17 | |||
18 | h2. instruments.cfg |
||
19 | |||
20 | <pre> |
||
21 | [camera] |
||
22 | class: gatan.Gatan |
||
23 | zplane: 50 |
||
24 | height: 4096 |
||
25 | width: 4096 |
||
26 | </pre> |
||
27 | |||
28 | * height and width depend on your specific camera |
||
29 | see [[instrumentscfg_for_22|instruments.cfg z plane configuration]] for more explanation. |
||
30 | |||
31 | 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 |
||
32 | |||
33 | h2. Setup |
||
34 | |||
35 | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
||
36 | * 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 |
||
37 | |||
38 | h2. Testing with pyscope |
||
39 | |||
40 | In python command |
||
41 | <pre> |
||
42 | from pyscope import gatan |
||
43 | g = gatan.Gatan() |
||
44 | g.setExposureTime(200) |
||
45 | g.getImage() |
||
46 | </pre> |
||
47 | |||
48 | You should get a bunch of numbers in a numpy array. |
||
49 | |||
50 | h2. Programs to open before Leginon Client: Digital Micrograph |