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
[docs]class FrequencyCls: """Frequency commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("frequency", core, parent)
[docs] def get_sw_points(self) -> str: """SCPI: CALibration:FREQuency:SWPoints \n Snippet: value: str = driver.calibration.frequency.get_sw_points() \n No command help available \n :return: freq_switch_point: 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: """SCPI: CALibration:FREQuency:SWPoints \n Snippet: driver.calibration.frequency.set_sw_points(freq_switch_point = 'abc') \n No command help available \n :param freq_switch_point: 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: """SCPI: CALibration<HW>:FREQuency:[MEASure] \n Snippet: value: bool = driver.calibration.frequency.get_measure() \n No command help available \n :return: measure: No help available """ response = self._core.io.query_str('CALibration<HwInstance>:FREQuency:MEASure?') return Conversions.str_to_bool(response)