Project

General

Profile

Gatan K2 Installation Pyscope Test » History » Version 11

Anchi Cheng, 01/30/2018 07:32 PM

1 3 Anchi Cheng
# Start DigitalMicrograph
2 5 Anchi Cheng
# From python command line or IDLE:<pre>
3 1 Anchi Cheng
import pyscope.dmsem
4
k = pyscope.dmsem.GatanK2Counting()
5
k.setExposureTime(200)
6
k.getImage()</pre>
7 4 Anchi Cheng
8
{{include(pyscope_test_result array)}}
9 6 Neil Voss
10 11 Anchi Cheng
h4. Testing frame saving
11
12
 You can continue the test above by saving frames, too.
13 10 Anchi Cheng
{{include(pyscope_test_k2_save_frames)}}
14 9 Anchi Cheng
15 6 Neil Voss
h4. testing energy filter
16
17
# Start DigitalMicrograph
18
# From python command line or IDLE:<pre>
19
import pyscope.dmsem
20
k = pyscope.dmsem.GatanK2Counting()
21
k.getEnergyFiltered()
22
k.getEnergyFilter()
23 7 Neil Voss
k.setEnergyFilter(True)
24
k.getEnergyFilter()
25
k.setEnergyFilter(False)
26
k.getEnergyFilter()
27 8 Neil Voss
k.getEnergyFilterWidth()
28 6 Neil Voss
</pre>