def on_sampling_duration_clicked(): catch_labrad_error( self, vm.set_sampling_duration( sampling_duration_spin.value()/1000. ) )
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))
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)) )
def on_set_clicked(): catch_labrad_error(self,ao.set_value(spin.value()))
def on_triggering_clicked(): is_triggering = yield vm.is_triggering() catch_labrad_error( self, vm.set_triggering(not is_triggering) )
def cb(setter,option): catch_labrad_error( self, setter(option) )
def set_temperature_setpoint(): catch_labrad_error( self, sh_server.set_temperature_setpoint(temperature_setpoint_spin.value()) )
def on_clicked(): catch_labrad_error(self, dg_server.set_delay(delay_spin.value()))