Project

General

Profile

Gatan on Windows with semccddll » History » Version 2

Anchi Cheng, 02/02/2016 02:03 PM

1 2 Anchi Cheng
h1. Gatan on Windows-32 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
* Use all win32 version of Windows installer
10
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
h2. Setup
29
30
!camera_configuration.png!
31
* Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]].  For example, we need flip around the vertical axis on FEI T12.  Note that the rotation required is different if it is installed post-GIF and/or on Krios.
32
* 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.
33
34
h2. (Version 3.2) Define local configuration in dmsem.cfg
35
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
59
{{include(Gatan_UltraScan_dmsem_Installation_Pyscope_Test)}}
60
61
h2. Trouble shooting
62
63
h3. Refused socket connection
64
65
If an error of "No connection could be made because the target machine actively refused it" comes up in the above test.
66
If not blocked by firewall, the SERIALEM_CCD_PORT specified in environment variable may be locked by a remaining previous attempt.
67
68
You can check active tcp port with Windows command
69
<pre>
70
netstat
71
</pre>
72
73
* In some case, you will find SERIALEMCCD or similar listed in Windows Task Manager Processing list.  If so, and that process remains after Digital Micrograph is closed, you can terminate it from Task Manager.
74
* CurrPorts is a program that can be used to check and close socket tcp connection with gui.
75
76
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.
77
78
h2. Programs to open before Leginon Client: Digital Micrograph