Fine positioning and deflection measurements.
stepper | stepper.Stepper instance
Coarse positioning.
+ temperature | temperature.Controller instance or None
+ Optional temperature monitoring and control.
"""
- def __init__(self, piezo, stepper, axis_name='z'):
+ def __init__(self, piezo, stepper, temperature=None, axis_name='z'):
self.piezo = piezo
self.stepper = stepper
+ self.temperature = temperature
self.axis_name = axis_name
+ def get_temperature(self):
+ """Measure the sample temperature.
+
+ Return the sample temperature in Kelvin or `None` if such a
+ measurement is not possible.
+ """
+ if hasattr(self.temperature, 'get'):
+ return self.temperature.get_temperature()
+
def move_just_onto_surface(self, depth=-50e-9, setpoint=2, far=200):
"""Position the AFM tip close to the surface.