Ejemplo n.º 1
0
    def __init__(self, hardware, parameters, parent = None):

        # STORM1 specific focus lock parameters.
        lock_params = parameters.addSubSection("focuslock")
        lock_params.add("qpd_zcenter", params.ParameterRangeFloat("Piezo center position in microns",
                                                                  "qpd_zcenter",
                                                                  30.0, 0.0, 100.0))
        lock_params.add("qpd_scale", params.ParameterRangeFloat("Offset to nm calibration value",
                                                                "qpd_scale",
                                                                3200.0, 0.1, 6000.0))
        lock_params.add("qpd_sum_min", 50.0)
        lock_params.add("qpd_sum_max", 1500.0)
        lock_params.add("is_locked_buffer_length", 10)
        lock_params.add("is_locked_offset_thresh", 0.01)

        # STORM1 Initialization.
        qpd = phreshQPD.PhreshQPDPRISM2()
        stage = mclController.MCLStage("c:/Program Files/Mad City Labs/NanoDrive/")
        lock_fn = lambda (x): -1.75 * x
        control_thread = stageOffsetControl.StageQPDThread(qpd,
                                                           stage,
                                                           lock_fn,
                                                           parameters.get("focuslock.qpd_sum_min", 50.0), 
                                                           parameters.get("focuslock.qpd_zcenter"),
                                                           parameters.get("focuslock.is_locked_buffer_length", 10),
                                                           parameters.get("focuslock.is_locked_offset_thresh", 0.01))

        ir_laser = LDC210.LDC210("PCIe-6321", 1)
        focusLockZ.FocusLockZQPD.__init__(self,
                                          parameters,
                                          control_thread,
                                          ir_laser,
                                          parent)
Ejemplo n.º 2
0
    def __init__(self, hardware, parameters, parent=None):

        # None specific focus lock parameters
        lock_params = parameters.addSubSection("focuslock")
        lock_params.add(
            "qpd_zcenter",
            params.ParameterRangeFloat("Piezo center position in microns",
                                       "qpd_zcenter", 50.0, 0.0, 100.0))
        lock_params.add(
            "qpd_scale",
            params.ParameterRangeFloat("Offset to nm calibration value",
                                       "qpd_scale", 50.0, 0.0, 10000.0))
        lock_params.add("qpd_sum_min", 50.0)
        lock_params.add("qpd_sum_max", 1500.0)
        lock_params.add("is_locked_buffer_length", 10)
        lock_params.add("is_locked_offset_thresh", 0.01)

        # None Initialization.
        qpd = noneWidgets.QPD()
        stage = noneWidgets.NanoP()
        lock_fn = lambda (x): 0.0 * x
        control_thread = stageOffsetControl.StageQPDThread(
            qpd, stage, lock_fn, lock_params.get("qpd_sum_min"),
            lock_params.get("qpd_zcenter"),
            lock_params.get("is_locked_buffer_length"),
            lock_params.get("is_locked_offset_thresh"))

        ir_laser = noneWidgets.IRLaser()
        focusLockZ.FocusLockZQPD.__init__(self, parameters, control_thread,
                                          ir_laser, parent)
Ejemplo n.º 3
0
 def __init__(self, hardware, parameters, parent=None):
     qpd = phreshQPD.PhreshQPDPRISM2()
     stage = mclController.MCLStage("c:/Program Files/NanoDrive/")
     lock_fn = lambda (x): -1.75 * x
     control_thread = stageOffsetControl.StageQPDThread(
         qpd, stage, lock_fn, 50.0, parameters.qpd_zcenter)
     ir_laser = LDC210.LDC210("PCIe-6321", 1)
     focusLockZ.FocusLockZQPD.__init__(self, parameters, control_thread,
                                       ir_laser, parent)
Ejemplo n.º 4
0
 def __init__(self, hardware, parameters, parent=None):
     qpd = noneWidgets.QPD()
     stage = noneWidgets.NanoP()
     lock_fn = lambda (x): 0.0 * x
     control_thread = stageOffsetControl.StageQPDThread(
         qpd, stage, lock_fn, 50.0, parameters.get("qpd_zcenter"))
     ir_laser = noneWidgets.IRLaser()
     focusLockZ.FocusLockZQPD.__init__(self, parameters, control_thread,
                                       ir_laser, parent)
Ejemplo n.º 5
0
 def __init__(self, hardware, parameters, parent=None):
     qpd = phreshQPD.PhreshQPDSTORM2()
     stage = zstage.QPriorZ()
     #        lock_fn = lambda (x): -1.75 * x
     lock_fn = lambda (x): x
     control_thread = stageOffsetControl.StageQPDThread(
         qpd,
         stage,
         lock_fn,
         50.0,
         parameters.get("qpd_zcenter"),
         parameters.get("is_locked_buffer_length", 10),
         parameters.get("is_locked_offset_thresh", 0.01),
         slow_stage=True)
     ir_laser = LDC210.LDC210("PCIe-6259", 8)
     focusLockZ.FocusLockZQPD.__init__(self, parameters, control_thread,
                                       ir_laser, parent)
Ejemplo n.º 6
0
    def __init__(self, hardware, parameters, parent = None):
        qpd = phreshQPD.PhreshQPDPRISM2()
        stage = mclController.MCLStage("c:/Program Files/Mad City Labs/NanoDrive/")
        lock_fn = lambda (x): -1.75 * x
        control_thread = stageOffsetControl.StageQPDThread(qpd,
                                                           stage,
                                                           lock_fn,
                                                           parameters.get("focuslock.qpd_sum_min", 50.0), 
                                                           parameters.get("focuslock.qpd_zcenter"),
                                                           parameters.get("focuslock.is_locked_buffer_length", 10),
                                                           parameters.get("focuslock.is_locked_offset_thresh", 0.01))

        ir_laser = LDC210.LDC210("PCIe-6321", 1)
        focusLockZ.FocusLockZQPD.__init__(self,
                                          parameters,
                                          control_thread,
                                          ir_laser,
                                          parent)