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.
Use PowerShell to send email
DigitalMicrograph - Gatan
This script uses Microsoft PowerShell to send out an email. Modify the mail server variables before testing.
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.