from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StoreCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("store", core, parent)
[docs]
def set(self, filename: str, objectIx=repcap.ObjectIx.Default) -> None:
"""
``[SOURce<HW>]:REGenerator:OBJect<CH>:STORe`` \n
Snippet: ``driver.source.regenerator.object.store.set(filename = 'abc', objectIx = repcap.ObjectIx.Default)`` \n
Stores the current settings into the selected file; the file extension (reg_obj) is assigned automatically.
Refer to 'Accessing Files in the Default or Specified Directory' for general information on file handling in the default
and in a specific directory.
:param filename: string
:param objectIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Object')
"""
param = Conversions.value_to_quoted_str(filename)
objectIx_cmd_val = self._cmd_group.get_repcap_cmd_value(objectIx, repcap.ObjectIx)
self._core.io.write(f'SOURce<HwInstance>:REGenerator:OBJect{objectIx_cmd_val}:STORe {param}')