Пример #1
0
 def on_sampling_duration_clicked():
     catch_labrad_error(
         self,
         vm.set_sampling_duration(
             sampling_duration_spin.value()/1000.
         )
     )
Пример #2
0
 def on_set_position():
     is_busy = yield sm.is_busy()
     if is_busy:
         QtGui.QMessageBox.warning(self,'stepper motor busy','stepper motor is currently busy')
         returnValue(None)
     is_enabled = yield sm.is_enabled()
     if not is_enabled:
         QtGui.QMessageBox.warning(self,'stepper motor disabled','stepper motor is currently disabled')
         returnValue(None)
     requested_position = position_spin.value()
     catch_labrad_error(self,sm.set_position(requested_position))
Пример #3
0
 def on_remove():
     channel = active_channels_widget.currentItem().data(CHANNEL)
     active_channels = [
         active_channels_widget.item(index).data(CHANNEL)
         for index in range(
             active_channels_widget.count()
         )
     ]
     active_channels.remove(channel)
     catch_labrad_error(
         self,
         vm.set_active_channels(map(str,active_channels))
     )
Пример #4
0
 def on_set_clicked():
     catch_labrad_error(self,ao.set_value(spin.value()))
Пример #5
0
 def on_triggering_clicked():
     is_triggering = yield vm.is_triggering()
     catch_labrad_error(
         self,
         vm.set_triggering(not is_triggering)
     )
Пример #6
0
 def cb(setter,option):
     catch_labrad_error(
         self,
         setter(option)
     )
Пример #7
0
 def set_temperature_setpoint():
     catch_labrad_error(
         self,
         sh_server.set_temperature_setpoint(temperature_setpoint_spin.value())
     )
Пример #8
0
 def on_clicked():
     catch_labrad_error(self, dg_server.set_delay(delay_spin.value()))