Gatan on Windows-32 » History » Version 7
Anchi Cheng, 07/09/2015 01:22 PM
1 | 1 | Anchi Cheng | h1. Gatan on Windows-32 |
---|---|---|---|
2 | |||
3 | * This is only known to work for Gatan camera associate with FEI microscopes. For JEOL microscope, dmsem is used. |
||
4 | |||
5 | h2. Extra Package and Installation |
||
6 | |||
7 | |_.program/package|_.notes| |
||
8 | |TecnaiCCD.dll |(Should come with the microscope).| |
||
9 | |||
10 | {{include(comtypes installer)}} |
||
11 | |||
12 | h3. Register TecnaiCCD.dll (It may have been registered already) |
||
13 | |||
14 | * From the command prompt, run the following commands. You may need to enter the full path of the dll: |
||
15 | <pre>REGSVR32 TecnaiCCD.dll</pre> |
||
16 | |||
17 | 6 | Anchi Cheng | h3. Run updatecom.py |
18 | |||
19 | * From a command line window: |
||
20 | <pre>cd C:\python27\Lib\site-packages\pyscope |
||
21 | C:\python27\python.exe updatecom.py</pre> |
||
22 | |||
23 | * The output sould contain this output |
||
24 | <pre> |
||
25 | initializing Gatan CCD Camera done. |
||
26 | </pre> |
||
27 | |||
28 | 1 | Anchi Cheng | h2. instruments.cfg |
29 | |||
30 | <pre> |
||
31 | [camera] |
||
32 | class: gatan.Gatan |
||
33 | zplane: 50 |
||
34 | height: 4096 |
||
35 | width: 4096 |
||
36 | </pre> |
||
37 | |||
38 | 3 | Anchi Cheng | * height and width depend on your specific camera |
39 | 1 | Anchi Cheng | see [[instrumentscfg_for_22|instruments.cfg z plane configuration]] for more explanation. |
40 | |||
41 | 4 | Anchi Cheng | 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 |
42 | |||
43 | 1 | Anchi Cheng | h2. Setup |
44 | |||
45 | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
||
46 | * 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 |
||
47 | |||
48 | h2. Testing with pyscope |
||
49 | |||
50 | In python command |
||
51 | <pre> |
||
52 | 7 | Anchi Cheng | from pyscope import gatan |
53 | 5 | Anchi Cheng | g = gatan.Gatan() |
54 | 1 | Anchi Cheng | g.setExposureTime(200) |
55 | g.getImage() |
||
56 | </pre> |
||
57 | |||
58 | You should get a bunch of numbers in a numpy array. |
||
59 | |||
60 | h2. Programs to open before Leginon Client: Digital Micrograph |