Project

General

Profile

Gatan K2 Installation Pyscope Test » History » Revision 10

Revision 9 (Anchi Cheng, 01/30/2018 07:24 PM) → Revision 10/12 (Anchi Cheng, 01/30/2018 07:29 PM)

# Start DigitalMicrograph 
 # From python command line or IDLE:<pre> 
 import pyscope.dmsem 
 k = pyscope.dmsem.GatanK2Counting() 
 k.setExposureTime(200) 
 k.getImage()</pre> 

 {{include(pyscope_test_result array)}} 

 * You can continue the test by saving frames, too. 
 {{include(pyscope_test_k2_save_frames)}} [[pyscope_test_k2_save_frames]] 

 h4. testing energy filter 

 # Start DigitalMicrograph 
 # From python command line or IDLE:<pre> 
 import pyscope.dmsem 
 k = pyscope.dmsem.GatanK2Counting() 
 k.getEnergyFiltered() 
 k.getEnergyFilter() 
 k.setEnergyFilter(True) 
 k.getEnergyFilter() 
 k.setEnergyFilter(False) 
 k.getEnergyFilter() 
 k.getEnergyFilterWidth() 
 </pre>