Source code for RsSmw.Implementations.Source.Fsimulator.Cdynamic

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CdynamicCls: """Cdynamic commands group definition. 8 total commands, 2 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("cdynamic", core, parent) @property def catalog(self): """catalog commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_catalog'): from .Catalog import CatalogCls self._catalog = CatalogCls(self._core, self._cmd_group) return self._catalog @property def path(self): """path commands group. 4 Sub-classes, 0 commands.""" if not hasattr(self, '_path'): from .Path import PathCls self._path = PathCls(self._core, self._cmd_group) return self._path
[docs] def delete(self, filename: str) -> None: """SCPI: [SOURce<HW>]:FSIMulator:CDYNamic:DELete \n Snippet: driver.source.fsimulator.cdynamic.delete(filename = 'abc') \n Deletes the specified file. Deleted are user-defined files with file extension *.fad_udyn. \n :param filename: 'filename' Complete file path and file name; file extension can be omitted. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:CDYNamic:DELete {param}')
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:FSIMulator:CDYNamic:STATe \n Snippet: value: bool = driver.source.fsimulator.cdynamic.get_state() \n Activates the customized dynamic fading configuration. \n :return: state: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:CDYNamic:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """SCPI: [SOURce<HW>]:FSIMulator:CDYNamic:STATe \n Snippet: driver.source.fsimulator.cdynamic.set_state(state = False) \n Activates the customized dynamic fading configuration. \n :param state: 1| ON| 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:CDYNamic:STATe {param}')
def clone(self) -> 'CdynamicCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = CdynamicCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group