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.
Run VisualBasic script
DigitalMicrograph - Gatan
Example showing how a VBS script stored as a file on the hard drive can be executed from a DigitalMicrograph script.
Run VisualBasic script directly
DigitalMicrograph - Gatan
Example script showing how a VBS script code can be created as a string variable and directly executed from a DigitalMicrograph script.
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.
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.
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.