Tietz camera installation and setup » History » Version 14
Anchi Cheng, 02/02/2016 03:04 PM
1 | 3 | Anchi Cheng | h1. Tietz/TVIPS camera installation and setup |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | h2. Many Tietz cameras are controlled by a computer separated from the microscope |
||
4 | |||
5 | Please read [[Using_Leginon_on_a_system_where_the_microscope_and_camera_are_controlled_by_different_computers]] first. |
||
6 | |||
7 | h2. Extra Package and Installation |
||
8 | |||
9 | 13 | Anchi Cheng | |_.package |_.local win32 installer| |
10 | 10 | Anchi Cheng | |Python for Windows extension (pywin32)|"pywin32-218.win32-py2.7.exe":/redmine/attachments/download/2068/pywin32-218.win32-py2.7.exe| |
11 | 14 | Anchi Cheng | |
12 | 10 | Anchi Cheng | *double click the windows installer to start* |
13 | |||
14 | 1 | Anchi Cheng | |_.program/package|_.notes| |
15 | |CAMC4.exe |(Should come with the camera)| |
||
16 | |||
17 | h3. Register CAMC4.exe |
||
18 | 2 | Anchi Cheng | |
19 | 1 | Anchi Cheng | * From the command prompt, run the following commands. |
20 | <pre>CAMC4.exe /regserver</pre> |
||
21 | |||
22 | 2 | Anchi Cheng | h3. Run updatecom.py |
23 | |||
24 | * From a command line window: |
||
25 | 5 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
26 | 2 | Anchi Cheng | C:\python27\python.exe updatecom.py</pre> |
27 | |||
28 | * The output sould contain this output |
||
29 | 1 | Anchi Cheng | <pre> |
30 | 7 | Anchi Cheng | initializing Tietz CCD Camera |
31 | 9 | Anchi Cheng | Found: CAMC4 1.0 Type Library |
32 | 7 | Anchi Cheng | done. |
33 | 1 | Anchi Cheng | </pre> |
34 | |||
35 | 6 | Anchi Cheng | You can ignore error messages regarding other com modules. |
36 | |||
37 | 2 | Anchi Cheng | h3. Register the Tietz ping callback function |
38 | 1 | Anchi Cheng | |
39 | 2 | Anchi Cheng | * From a command line window: |
40 | 5 | Anchi Cheng | <pre>cd C:\python27\Lib\site-packages\pyscope |
41 | 1 | Anchi Cheng | C:\python27\python.exe tietzping.py</pre> |
42 | |||
43 | 4 | Anchi Cheng | h2. check camc.ini |
44 | |||
45 | {{include(CAMC_ini_setup)}} |
||
46 | |||
47 | 1 | Anchi Cheng | h2. instruments.cfg |
48 | |||
49 | 2 | Anchi Cheng | This is extracted from pyscope/instruments.cfg.template |
50 | <pre> |
||
51 | ## Tietz/TVIPS Camera using various drivers. Chose only the driver |
||
52 | ## that works with your camera. Optionally, you may also select |
||
53 | ## the Simulation camera. A test script is available to help you figure |
||
54 | ## out which ones are available to you. Run the script: tietztest.py |
||
55 | ## - tietz.TietzSCX |
||
56 | ## - tietz.TietzPXL |
||
57 | ## - tietz.TietzPVCam |
||
58 | ## - tietz.TietzFC415 |
||
59 | ## - tietz.TietzFC416 |
||
60 | ## - tietz.TietzFC816 |
||
61 | ## - tietz.TietzFastScan |
||
62 | ## - tietz.TietzSimulation |
||
63 | </pre> |
||
64 | 1 | Anchi Cheng | |
65 | 8 | Anchi Cheng | For example, instruments.cfg for F416 looks like this: |
66 | <pre> |
||
67 | [Tietz Camera] |
||
68 | class: tietz.TietzF416 |
||
69 | zplane: 5 |
||
70 | height: 4096 |
||
71 | width: 4064 |
||
72 | </pre> |
||
73 | * I use zplane of 5 because this is a bottom-mount camera that does not retract. Therefore it is always the lowest. |
||
74 | |||
75 | 1 | Anchi Cheng | h2. Setup |
76 | |||
77 | 2 | Anchi Cheng | * Set camera configuration to give the [[Leginon Image Orientation|standard Leginon orientation]]. |
78 | 1 | Anchi Cheng | |
79 | h2. Testing with pyscope |
||
80 | |||
81 | 11 | Anchi Cheng | *F416 camera is used in this case* |
82 | |||
83 | 1. Close TVIPS TCL/EMMENU |
||
84 | 2. From python command shell or IDLE: |
||
85 | <pre> |
||
86 | from pyscope import tietz |
||
87 | t = tietz.TietzF416() |
||
88 | t.getImage() |
||
89 | </pre> |
||
90 | |||
91 | {{include(pyscope_test_result_array)}} |
||
92 | |||
93 | 1 | Anchi Cheng | h2. Trouble shooting |
94 | |||
95 | {{include(Tietz_camera_trouble_shoot)}} |
||
96 | |||
97 | |||
98 | 2 | Anchi Cheng | h2. Programs to open before Leginon Client: None. TCL/EMMENU must be closed |