Launching an external application and regularly checking if it is still running
DigitalMicrograph - Gatan
Example script showing how the external application Notepad.exe can be launched. The script regularly polls whether or not Notepad.exe is still open so that actions can be performed once the external application is closed.
Iterate layouts
DigitalMicrograph - Gatan
Command example showing how ImageDocument layouts are set.
IS dataset radial FFT profile
Python - Gatan
Compute radial-max profiles over time from the FFT of in-situ video datasets in Gatan Microscopy Suite.
Interactive histogram
DigitalMicrograph - Gatan
Compute a histogram of the frontmost image and allow interactive change of histogram bins.
InGaN bandgap to concentration
DigitalMicrograph - Gatan
A basic script that uses an equation and parameters to estimate the concentration of In in an InGaN spectrum image. Requires as input: Map of bandgap estimation (output from NLLS fitting).
Import an image from a text file
DigitalMicrograph - Gatan
Command example script showing how the ImageImportTextData() command is to be used.
Having a script wait for a file to appear
DigitalMicrograph - Gatan
Example script which holds its execution until a certain file is found at a given location. Checking is performed on the main thread at given intervals.
Get front two images
Python - Gatan
Demonstration of accessing the two frontmost images in GMS.
Focal series
DigitalMicrograph - Gatan
Simulate a focal series of theoretical diffractograms.