Пример #1
0
 def lockFocus(self):
     if not self.locked:
         self.locked = True
         self.lockButton.setChecked(True)
         self.setPoint = self.processDataThread.focusSignal
         self.focusLockGraph.line = self.focusLockGraph.plot.addLine(
             y=self.setPoint, pen='r')
         self.PI = pi.PI(self.setPoint, np.float(self.kpEdit.text()),
                         np.float(self.kiEdit.text()))
         self.initialZ = self.z.position
Пример #2
0
 def lockFocusFirst(self):
     if not self.locked:
         self.setPoint = self.processDataThread.focusSignal
         self.focusLockGraph.line = self.focusLockGraph.plot.addLine(
             y=self.setPoint, pen='r')
         self.PI = pi.PI(self.setPoint, 0.001, np.float(self.kpEdit.text()),
                         np.float(self.kiEdit.text()))
         self.initialZ = self.z.absZ
         self.locked = True
         self.stepDistLow = 0.001 * np.float(self.zStepFromEdit.text())
         self.stepDistHigh = 0.001 * np.float(self.zStepToEdit.text())
Пример #3
0
 def lockFocusSetPos(self, newFocusPos):
     if not self.locked:
         self.setPoint = newFocusPos
         self.focusLockGraph.line = self.focusLockGraph.plot.addLine(
             y=self.setPoint, pen='r')
         self.PI = pi.PI(self.setPoint, 0.001, np.float(self.kpEdit.text()),
                         np.float(self.kiEdit.text()))
         self.initialZ = self.z.absZ
         self.locked = True
         self.stepDistLow = 0.001 * np.float(self.zStepFromEdit.text())
         self.stepDistHigh = 0.001 * np.float(self.zStepToEdit.text())
Пример #4
0
 def lockFocus(self):
     if not self.locked:
         self.lockingpoints = np.sort(self.dataPoints)
         self.lockingpoints = np.delete(self.lockingpoints, 0)
         self.lockingpoints = np.delete(self.lockingpoints, -1)
         self.setPoint = np.mean(self.lockingpoints)
         self.focusLockGraph.line = self.focusLockGraph.plot.addLine(
             y=self.setPoint, pen='r')
         self.PI = pi.PI(self.setPoint, 0.001, np.float(self.kpEdit.text()),
                         np.float(self.kiEdit.text()))
         self.initialZ = self.z.absZ
         self.locked = True
         self.stepDistLow = 0.001 * np.float(self.zStepFromEdit.text())
         self.stepDistHigh = 0.001 * np.float(self.zStepToEdit.text())
         #print(self.stepDistance)
         print('%.2f s' % self.zsteptime)
         print(' ')