Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

EELS Dispersion Calculator
Function

Calculates the appropriate EELS spectrometer dispersion and drift tube (or Offset) voltage for a target set of EELS conditions.

Version
version:20180220, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments

The energy of the low and high energy edges to be spanned are entered, along with the energy range before the low energy edge and following the high energy edge. Based on the dispersions available in the spectrometer, the value selected ensures that the highest dispersion possible is chosen. The required energy offset for the Drift Tube of High Tension is also calculated.

System Requirements
Should be compatible with all GMS versions.
Known Issues
When first run you need to edit the list of dispersions in the Calculator so that they match those available in your spectrometer. Click on the Tools button and open the Dispersions tab. List your dispersions from highest (small numbers) to lowest. If the conditions you have chosen span an energy range too great for your spectrometer, the calculator returns a dispersion of 0.0eV/ch.
Supported
Yes
Included Files
Main script file.
Source Code

See attached script.