Scripting Resources for DigitalMicrograph™ |
Example: DigiScan Beam Control |
|
Function |
An example script which shows how to control the beam position using DigiScan. |
Version |
version: 20220331, v1.0 |
Author |
D. R. G. Mitchell |
Acknowledgements |
|
Comments |
Does a 5 x 5 point scan within either a region of interest in the front-most DigiScan image, or, if no region of interest is present, the whole image. A marker on the image updates and the beam in the micrsocope is moved to the equivalent position on the specimen. |
System Requirements |
Will only run on an instance of DigitalMicrograph connected to a micrsocope and fitted with a DigiScan system. Alternatively, it can be tested offline, on an instance of DigitalMicrograph in which the Faux DigiScan Library is installed. |
Known Issues |
DigiScan scripting is a bit brittle. See the comments on the script, especially those relating to handling exceptions and ensuring that scan control is handed back to the microscope, should an error occur. |
Supported |
Yes |
Included Files |
Main script file. |
Source Code |
See attached script |