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