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