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_points(self) -> int:
"""SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:FREQuency:POINts \n
Snippet: value: int = driver.source.pulm.train.hopping.frequency.get_points() \n
No command help available \n
:return: points: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:FREQuency:POINts?')
return Conversions.str_to_int(response)
[docs] def get_value(self) -> str:
"""SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:FREQuency \n
Snippet: value: str = driver.source.pulm.train.hopping.frequency.get_value() \n
No command help available \n
:return: frequency: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:FREQuency?')
return trim_str_response(response)
[docs] def set_value(self, frequency: str) -> None:
"""SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:FREQuency \n
Snippet: driver.source.pulm.train.hopping.frequency.set_value(frequency = 'abc') \n
No command help available \n
:param frequency: No help available
"""
param = Conversions.value_to_quoted_str(frequency)
self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:HOPPing:FREQuency {param}')