Reposition cantilever between each bump to adjust for piezo creep.
authorW. Trevor King <wking@drexel.edu>
Fri, 27 Mar 2009 13:17:36 +0000 (09:17 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 27 Mar 2009 13:17:36 +0000 (09:17 -0400)
calibcant/calibrate.py

index 636b113aa8c25f92ef80e581a2bbe094c7c9c637..7986ccb43c4ad727f7d1f26ce648ff306d83dd12 100755 (executable)
@@ -367,9 +367,9 @@ def calib_aquire(stepper, zpiezo, num_bumps=10, num_Ts=10, num_vibs=20,
         T_kwargs,vib_kwargs,calib_save_kwargs = \
         calib_aquire._splitargs(calib_aquire, kwargs)
     # get bumps
-    move_just_onto_surface(stepper, zpiezo, **move_just_onto_surface_kwargs)
     bumps = numpy.zeros((num_bumps,), dtype=numpy.float)
     for i in range(num_bumps) :
+        move_just_onto_surface(stepper, zpiezo, **move_just_onto_surface_kwargs)
         bumps[i] = bump(zpiezo=zpiezo, log_dir=log_dir,
                         Vphoto_in2V=Vphoto_in2V, **bump_kwargs)
     if config.TEXT_VERBOSE :