Adding DE-12 to Leginon » History » Revision 13
« Previous |
Revision 13/16
(diff)
| Next »
Anchi Cheng, 02/02/2016 02:30 PM
Installation Guide for DE-12 or DE-20¶
DE-12 is on a computer separated from the microscope¶
Please read Using_Leginon_on_a_system_where_the_microscope_and_camera_are_controlled_by_different_computers first.
Extra Package and Installation¶
program/package | notes |
---|---|
DirectElectronAPI.exe | (Should come with the camera) |
Google protobuf |
Protobuf installation instruction¶
Google Protobuf is an open source communication library DE use between client and server. For C++ programs, it is built into the program, so no external library installation is needed. However, for Python/Leginon only, the library will need to be added. A simple way to install this for python use on DE camera computer (Windows) follows:
- Download 2.3.0 source zip file as well as the win32.zip binary file
- Unzip both packages.
- Copy the binary file protoc-2.3.0-win32/proc.exe into protobuf-2.3.0\protobuf-2.3.0\src folder
- Go into protobuf\python and run "python setup.py install".
Note: If it attempts to install 0.6c9 version of setuptools and failed to obtain the file, download the ez_setup.py file from setuptools for Windows 7 at https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py You can then replace the one in your protobuf-2.3.0/python folder.
instruments.cfg¶
DE12 and DE Survey camera are retract/extend together, with the survey camera at off-axis. Therefore zplane should be set at the same value
For example,
[camera1] class: de.DE12 zplane: 50 [camera2] class: de.DESurvey zplane: 50
height and width should be set according to the model.
Setup¶
- Create the folder to store the dose fractionation raw frames. Default location is D:\\frames.
- Setup raw frame file transfer from a network data server.
Testing¶
Testing with pyscope¶
- start DE Server
- from python command line
from pyscope import de c = de.DE12() c.setExposuretime(407) c.getImage()
- 407 ms is the 10 frame exposure time at 25.4 Hz default in DE-12
You should expect these to run without error. The getImage() command should give a 2D numpy array like
array([[1000, 3400, 2300, ..., 1000,1200,3000], [1000, 3400, 2300, ..., 1000,1200,3000], [1000, 3400, 2300, ..., 1000,1200,3000], ..., [1000, 3400, 2300, ..., 1000,1200,3000], [1000, 3400, 2300, ..., 1000,1200,3000], [1000, 3400, 2300, ..., 1000,1200,3000],dtype=int16)
The number and dtype depends on the camera.
a.shape command should give a tuple of the camera dimension matching your camera.
For example, (4096,4096)
If you use python shell to do this test, some of the error will cause the shell window to close immediately. Use Python IDLE instead in that case
Programs to open before Leginon Client: DE Server¶
See how to use DE camera usage in
- DE-12 introduction Please read this!!!
- Acquiring summed frame image thru Leginon
- Triggering raw frame saving
- Transferring raw frame images off the solid-state drive of DE-12 during data collection to a network drive.
- Compiling corrected movie stack with Appion using bright and dark images acquired in Leginon
Updated by Anchi Cheng almost 9 years ago · 13 revisions