Gatan on Windows with semccddll » History » Version 11
Anchi Cheng, 06/21/2019 05:45 PM
1 | 11 | Anchi Cheng | h1. Gatan on Windows with SEMCCD.dll |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | 2 | Anchi Cheng | dmsem module uses SEMCCD.dll written for SerialEM to communicate with Gatan software rather than tecnaiccd.dll |
4 | 1 | Anchi Cheng | |
5 | If using this on a computer different from the scope computer, please read [[Using_Leginon_on_a_system_where_the_microscope_and_camera_are_controlled_by_different_computers|this]] first. |
||
6 | |||
7 | h2. Extra Package and Installation |
||
8 | |||
9 | 11 | Anchi Cheng | * Use all win32 version of Windows installer if this is an Windows-32 PC. Otherwise install the 64-bit version. |
10 | 1 | Anchi Cheng | |
11 | * SerialEM DigitalMicrograph Plug-in |
||
12 | |||
13 | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
||
14 | |||
15 | h2. instruments.cfg |
||
16 | |||
17 | Currently UltraScan and Orius camera are supported. |
||
18 | |||
19 | For UltraScan camera (US4000), set instruments.cfg to use GatanUltraScan class. For example: |
||
20 | <pre> |
||
21 | [us4000] |
||
22 | class: dmsem.GatanUltraScan |
||
23 | zplane: 50 |
||
24 | height: 4096 |
||
25 | width: 4096 |
||
26 | </pre> |
||
27 | |||
28 | 5 | Anchi Cheng | For Orius camera, set instruments.cfg to use GatanOrius class. |
29 | |||
30 | 1 | Anchi Cheng | h2. Setup |
31 | |||
32 | 4 | Anchi Cheng | {{include(dm camera configuration)}} |
33 | 1 | Anchi Cheng | |
34 | 10 | Anchi Cheng | h2. Define local configuration in dmsem.cfg |
35 | 1 | Anchi Cheng | |
36 | # Copy from your myami checkout pyscope/dmsem.cfg.template to C:\Program Files\myami\dmsem.cfg |
||
37 | # Make changes to the configured value in dmsem.cfg |
||
38 | |||
39 | Most parameters are explained above. |
||
40 | |||
41 | * *The config parser takes "'" and "\" literally*. Therefore, do not include "'" in DM_VERION. In addition, the path separator should be "\" |
||
42 | * *CAMERA_ID* is usually 0 if it is the only Gatan camera. |
||
43 | * *Ultrascan camera should be configured under utrascan module, and Orius camera should be configured under orius module. |
||
44 | |||
45 | For example, only UltraScan camera exists on this computer that has Digital Micrograph version 2.32.788.0, and DM camera configuration |
||
46 | has vertical flip but no rotation, then set the dmsem.cfg ultrascan module like this: |
||
47 | <pre> |
||
48 | [dm] |
||
49 | DM_VERSION = 2.32.788.0 |
||
50 | |||
51 | [ultrascan] |
||
52 | CAMERA_ID = 0 |
||
53 | FLIP = True |
||
54 | ROTATE = 0 |
||
55 | </pre> |
||
56 | 2 | Anchi Cheng | |
57 | h2. Testing with pyscope |
||
58 | 3 | Anchi Cheng | |
59 | 2 | Anchi Cheng | {{include(Gatan_UltraScan_dmsem_Installation_Pyscope_Test)}} |
60 | |||
61 | h2. Trouble shooting |
||
62 | |||
63 | h3. Refused socket connection |
||
64 | |||
65 | 9 | Anchi Cheng | {{include(trouble shooting semccd socket connection)}} |
66 | 2 | Anchi Cheng | |
67 | h3. SerialEM-CCD plugin can output the command it issues and results to DM's result panel if you set the environment variable SERIALEMCCD_DEBUG to larger than 0. Set to 1 to show general log. Set to 2 to also include socket communication log. Please activate this debug log and include the portion that shows problem when reporting problems to Leginon team. |
||
68 | |||
69 | h2. Programs to open before Leginon Client: Digital Micrograph |