Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Faux Hardware Settings
Function
A dialog-based script which can be used to monitor and edit the settings which are used by the Faux hardware libraries: Faux Microscope Library; Faux Camera Library; Faux CL Library; Faux DigiScan Library and Faux Imaging Filter Library.
Version
version:20200801, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments

The five hardware libraries mentioned above can be installed as libraries in an offline version of DigitalMicrograph to permit development of scripts intended to access the corresponding hardware. In the absence of the relevant library the script functionality will not exist and an error would occur when running such a script.

All the libraries have a default set of settings and responses built-in. This script will allow those default settings to be monitored and edited eg the camera length, focus, objective astigmatism values etc. When script commands in the various libraries are accessed, they can either source or set those values. This script allows these settings to be monitored, to ensure a script under development is doing what it is supposed to do - eg inserting a slit, changing the focus etc. The settings can also be changed using this script to see if the script under development correctly responds eg if it finds that the GIF slit is out, it inserts it.

 

System Requirements
Should be compatible with all recent versions of DigitalMicrograph and has no external dependencies.
Known Issues

This script will create a full set of default settings provided that they have not been created by installed hardware libraries previously. If a particular hardware library has been installed then the relevant settings will already be present and this script will not overwrite them. This script is not dependent upon the hardware libraries and will work happily in its absence - all it does is read and edit tags containing the settings. However, if the relevant hardware libraries are not present, then the corresponding script functionality will not be available and any scripts which use such commands will report errors.

Supported
Yes
Included Files
Main script file.
Source Code

see attached script.