Total Dose Rate Listener2
DigitalMicrograph - Gatan
Script to measure and display the total dose rate (in millions of electrons per second) on the camera. Run this script with the live view frontmost in DigitalMicrograph and press the Spacebar key to stop it.
Set all scale bars to same style
DigitalMicrograph - Gatan
This automation script will set the style and size of the scale-bar annotations of all currently shown images.
Add scale-bar and intensity-bar
DigitalMicrograph - Gatan
Command example showing how scale-bar and intensity-bar annotations are created on an image.
Iterate layouts
DigitalMicrograph - Gatan
Command example showing how ImageDocument layouts are set.
Monitor a value over time
DigitalMicrograph - Gatan
This example script monitors a value and plots it in regular intervals, creating a growing LinePlot. The script is a template that can easily be modified to create time-logging of any script-accessible value.
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.
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.