from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class StoreCls:
"""Store commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("store", core, parent)
[docs]
def get_fast(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:SETTing:STORe:FAST \n
Snippet: value: bool = driver.source.bb.arbitrary.mcarrier.setting.store.get_fast() \n
No command help available \n
:return: fast: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:MCARrier:SETTing:STORe:FAST?')
return Conversions.str_to_bool(response)
[docs]
def set_fast(self, fast: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:SETTing:STORe:FAST \n
Snippet: driver.source.bb.arbitrary.mcarrier.setting.store.set_fast(fast = False) \n
No command help available \n
:param fast: No help available
"""
param = Conversions.bool_to_str(fast)
self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:MCARrier:SETTing:STORe:FAST {param}')
[docs]
def set_value(self, filename: str) -> None:
"""SCPI: [SOURce<HW>]:BB:ARBitrary:MCARrier:SETTing:STORe \n
Snippet: driver.source.bb.arbitrary.mcarrier.setting.store.set_value(filename = 'abc') \n
Stores the current settings into the selected file; the file extension (*.arb_multcarr) is assigned automatically. Refer
to 'Accessing files in the default or in a specified directory' for general information on file handling in the default
and in a specific directory. \n
:param filename: string Filename or complete file path
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:MCARrier:SETTing:STORe {param}')