Source code for RsSmbv.Implementations.Source.Bb.Gnss.Logging.Destination.File

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 FileCls: """File commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("file", core, parent) @property def tappend(self): """tappend commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_tappend'): from .Tappend import TappendCls self._tappend = TappendCls(self._core, self._cmd_group) return self._tappend
[docs] def get_directory(self) -> str: """SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:DESTination:FILE:DIRectory \n Snippet: value: str = driver.source.bb.gnss.logging.destination.file.get_directory() \n Sets the storage place. \n :return: directory: string File path """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:LOGGing:DESTination:FILE:DIRectory?') return trim_str_response(response)
[docs] def set_directory(self, directory: str) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:LOGGing:DESTination:FILE:DIRectory \n Snippet: driver.source.bb.gnss.logging.destination.file.set_directory(directory = 'abc') \n Sets the storage place. \n :param directory: string File path """ param = Conversions.value_to_quoted_str(directory) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:LOGGing:DESTination:FILE:DIRectory {param}')
def clone(self) -> 'FileCls': """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 = FileCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group