Source code for RsSmbv.Implementations.Source.Bb.Gnss.Setting.Load

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LoadCls: """Load commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("load", core, parent)
[docs] def set_predefined(self, scenario: str) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:SETTing:LOAD:PREDefined \n Snippet: driver.source.bb.gnss.setting.load.set_predefined(scenario = 'abc') \n Loads the selected scenario file. \n :param scenario: 'ScenarioName' Name of a predefined scenario, as queried with the command [:SOURcehw]:BB:GNSS:SETTing:CATalog:PREDefined?. """ param = Conversions.value_to_quoted_str(scenario) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SETTing:LOAD:PREDefined {param}')