Scripting Resources for DigitalMicrograph™ |
PyJEM Example: Monitor the Microscope Emission with a Background Thread | |
Function |
Creates a small dialog which can be used to monitor the microscope emission. |
Version |
version:20220907, v1.0 |
Author |
D. R. G. Mitchell |
Acknowledgements |
- |
Comments |
This Python script shows how to create a simple dialog with controls for managing a monitoring thread. The thread reads, in this case, the microscope emission and updates the value in the dialog at the interval specified. However, any microscope parameter could be monitoried in this way. |
System Requirements |
Written in Spyder in Anaconda3. Requires a PyJEM-equipped microscope. The script can be opened in Spyder and run from there. Alternatively, double clicking on the script will run it in Python. If the downloaded script as a generic grey file icon it does not have Python set as the default application to open it. Right click on it and set Python to open it. Python lives in the Anaconda3 folder. |
Known Issues |
- |
Supported |
Yes |
Included Files |
Main script file. |
Source Code |
zip archive containing the script. |