Scripting Resources for DigitalMicrograph™


Dave Mitchell's DigitalMicrograph™ Scripting Website

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


EELS Dispersion Calculator

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

version:20180220, v1.0
D. R. G. Mitchell

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.
Included Files
Main script file.
Source Code

See attached script.