return self.temperature.get_temperature()
def move_just_onto_surface(self, depth=-50e-9, setpoint=2,
- min_slope_ratio=10, far=200):
+ min_slope_ratio=10, far=200, steps=20,
+ sleep=0.0001):
"""Position the AFM tip close to the surface.
Uses `.piezo.get_surface_position()` to pinpoint the position
self._check_target_deflection(deflection=target_def)
_LOG.debug('zero the %s piezo output' % self.axis_name)
- self.piezo.jump(axis_name=self.axis_name, position=zero)
+ self.piezo.jump(
+ axis_name=self.axis_name, position=zero, steps=steps, sleep=sleep)
_LOG.debug("see if we're starting near the surface")
try:
% self.axis_name)
target_m = pos_m + depth
target = _convert_meters_to_bits(axis.config, target_m)
- self.piezo.jump(self.axis_name, target)
+ self.piezo.jump(self.axis_name, target, steps=steps, sleep=sleep)
_LOG.debug(
'positioned %g m into the surface at stepper %d, piezo %d (%g m)'
classifiers=filter(None, classifiers.split('\n')),
packages=['pyafm'],
provides=['pyafm (%s)' % __version__],
- requires=['pypiezo (>= 0.4)'],
+ requires=['pypiezo (>= 0.6)'],
)