The SerialEM Script Repository

Save Microscope State

Edit Delete


Name Save Microscope State
Category High-Level Functions
Language SerialEM Scripting
Description Saves the current state of the microscope (illumination, image shift, focus, mag, stage position) for later restoration using the "Restore Microscope State" script
Author Guenter Resch
Website link

Version History

Version 1.0


This script requires additional scripts to be run – please refer to the Required Scripts section below.

Upload date February 26, 2018
Download count 462
SerialEM version ≥ 3.6


Required Scripts

The following scripts are required to run this script, either because the are called directly or they provide functions:


The state of the microscope is saved to persistent variables that live as long as a SerialEM session (regular variables only live as long as the script is running).

Various microscope parameters are not implemented yet, see comments in script.


This code can be shared and adapted under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License (