示例#1
0
 def ao2_value(self):
     """
     Called when AO Channel 2 spinbox is modified.
     Updates the parameter using a method of operator (which checks validity) and forces the (corrected) parameter in the gui element
     """
     value = self.operator.analog_out(2, self.ao2_spinbox.value())
     self.ao2_spinbox.setValue(value)
     set_spinbox_stepsize(self.ao2_spinbox)
示例#2
0
 def scan_step_value(self):
     """
     Called when Scan Step spinbox is modified.
     Updates the parameter using a method of operator (which checks validity) and forces the (corrected) parameter in the gui element
     """
     self.operator._set_scan_step(self.scan_step_spinbox.value())
     self.scan_step_spinbox.setValue(
         self.operator.properties[self.scan_name]['step'])
     set_spinbox_stepsize(self.scan_step_spinbox)
示例#3
0
 def time_step(self):
     """
     Called when time step spinbox is modified.
     Updates the parameter using a method of operator (which checks validity) and forces the (corrected) parameter in the gui element
     """
     self.operator._set_monitor_time_step(self.time_step_spinbox.value())
     self.time_step_spinbox.setValue(
         self.operator.properties['monitor']['time_step'])
     set_spinbox_stepsize(self.time_step_spinbox)
示例#4
0
 def scan_duration_value(self):
     """
     Called when Scan Start spinbox is modified.
     Updates the parameter using a method of operator (which checks validity and also fixes the sign of step) and
     forces the (corrected) parameter in the gui elements
     """
     self.operator._set_scan_duration(self.scan_duration_spinbox.value())
     self.scan_duration_spinbox.setValue(
         self.operator.properties['scan']['duration'])
     self.scan_step_spinbox.setValue(
         self.operator.properties['scan']['step'])
     set_spinbox_stepsize(self.scan_duration_spinbox)
     self.plot1.setXRange(0, self.operator.properties['scan']['duration'])