def do_set_span(self,span):
		'''
		Set Span

		Input:
			span (float) : Span in KHz

		Output:
			None
		'''
		logging.debug(__name__ + ' : setting span to %s Hz' % span)
		_signal_hound.initiate(self._device, _signal_hound.sweeping, 0)
		nop, start_freq, bin_size = _signal_hound.query_sweep_info(self._device)
		start = start_freq
		if nop<2: nop = 2
		stop = start_freq + (nop-1)*bin_size
		
		_signal_hound.config_center_span(self._device, (start+stop)*0.5, span)
		
		self.get_startfreq();
		self.get_stopfreq();
		self.get_centerfreq(); 
	def do_set_stopfreq(self,val):
		'''
		Set STop frequency

		Input:
			val (float) : Stop Frequency in Hz

		Output:
			None
		'''
		logging.debug(__name__ + ' : setting start freq to %s Hz' % val)
		_signal_hound.initiate(self._device, _signal_hound.sweeping, 0)
		nop, start_freq, bin_size = _signal_hound.query_sweep_info(self._device)
		if nop<2: nop = 1
		#stop = start_freq + (nop-1)*bin_size 
		new_center = (val+start_freq)*0.5
		new_span = val - start_freq
		
		_signal_hound.config_center_span(self._device, new_center, new_span)
		
		self.get_centerfreq();
		self.get_stopfreq();
		self.get_span();
	def do_set_centerfreq(self,cf):
		'''
		Set the center frequency

		Input:
			cf (float) :Center Frequency in Hz

		Output:
			None
		'''
		logging.debug(__name__ + ' : setting center frequency to %s' % cf)
		_signal_hound.initiate(self._device, _signal_hound.sweeping, 0)
		nop, start_freq, bin_size = _signal_hound.query_sweep_info(self._device)
		if nop<2: nop = 2
		start = start_freq
		stop = start_freq + (nop-1)*bin_size
		span = stop-start
		
		_signal_hound.config_center_span(self._device, cf, span)
		
		self.get_startfreq();
		self.get_stopfreq();
		self.get_span();
	def set_xlim(self, start, stop):
		logging.debug(__name__ + ' : setting start freq to %s Hz and stop freq to %s Hz' % (start, stop))
		_signal_hound.initiate(self._device, _signal_hound.sweeping, 0)
		_signal_hound.config_center_span(self._device, (start+stop)*0.5, stop-start)