Commit b5179175 authored by Martin Drechsler's avatar Martin Drechsler

minor correction to avoid a change in AO when scaning from 0 to 0

parent acfa4d16
...@@ -96,7 +96,7 @@ class anal_control_signal(QWidget): ...@@ -96,7 +96,7 @@ class anal_control_signal(QWidget):
def scanEvent(self): def scanEvent(self):
if float(self.scan_step) < float(self.scan_sb_start.val) or float(self.scan_step) > float(self.scan_sb_stop.val): if float(self.scan_step) < float(self.scan_sb_start.val) or float(self.scan_step) > float(self.scan_sb_stop.val):
self.scan_direction = (-1) * self.scan_direction self.scan_direction = (-1) * self.scan_direction
self.scan_step = self.scan_step + self.scan_direction self.scan_step = self.scan_step + self.scan_direction
self.AO.set_out(self.scan_step) self.AO.set_out(self.scan_step)
...@@ -151,10 +151,11 @@ class anal_control_signal(QWidget): ...@@ -151,10 +151,11 @@ class anal_control_signal(QWidget):
else: else:
self.sb.setEnabled(False) self.sb.setEnabled(False)
self.scan_button.setStyleSheet("background-color: green") self.scan_button.setStyleSheet("background-color: green")
self.PbarTimer.start(dt*1e3)
self.ScanTimer.start(dt*1e3) self.ScanTimer.start(dt*1e3)
self.scan_button.setText('Scanning') self.scan_button.setText('Scanning')
self.PbarTimer.start(dt*1e3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment