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.
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.
Show system IP configuration
DigitalMicrograph - Gatan
Short script showing how command prompt output can be created and read into a DigitalMicrograph script using the command line 'ipconfig.exe' as an example.
Start an external executable
DigitalMicrograph - Gatan
Mini-example of how the command LaunchExternalProcess() is used. This command can execute any external application. It provides a powerful method to access hardware outside the DigitalMicrograph environment from within DigitalMicrograph.