Source code for RsSmbv.Implementations.Calibration.Frequency

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ...Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FrequencyCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("frequency", core, parent)

[docs] def get_sw_points(self) -> str: """ ``CALibration:FREQuency:SWPoints`` \n Snippet: ``value: str = driver.calibration.frequency.get_sw_points()`` \n No help available """ response = self._core.io.query_str('CALibration:FREQuency:SWPoints?') return trim_str_response(response)
[docs] def set_sw_points(self, freq_switch_point: str) -> None: """ ``CALibration:FREQuency:SWPoints`` \n Snippet: ``driver.calibration.frequency.set_sw_points(freq_switch_point = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(freq_switch_point) self._core.io.write(f'CALibration:FREQuency:SWPoints {param}')
[docs] def get_measure(self) -> bool: """ ``CALibration<HW>:FREQuency:[MEASure]`` \n Snippet: ``value: bool = driver.calibration.frequency.get_measure()`` \n No help available """ response = self._core.io.query_str('CALibration<HwInstance>:FREQuency:MEASure?') return Conversions.str_to_bool(response)