from typing import List
from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StateCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("state", core, parent)
@property
def all(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_all'):
from .All import AllCls
self._all = AllCls(self._core, self._cmd_group)
return self._all
[docs]
def set(self, state: List[int]) -> None:
"""
``MMEMory:LOAD:IQ:STATe`` \n
Snippet: ``driver.applications.k14Xnr5G.massMemory.load.iq.state.set(state = [1, 2, 3])`` \n
Restores I/Q data from a file.
:param state: string String containing the path and name of the source file. The file type is determined by the file extension. If no file extension is provided, the file type is assumed to be .iq.tar. For .mat files, Matlab(R) v4 is assumed.
"""
param = Conversions.list_to_csv_str(state)
self._core.io.write(f'MMEMory:LOAD:IQ:STATe {param}')
[docs]
def get(self) -> List[int]:
"""
``MMEMory:LOAD:IQ:STATe`` \n
Snippet: ``value: List[int] = driver.applications.k14Xnr5G.massMemory.load.iq.state.get()`` \n
Restores I/Q data from a file.
"""
response = self._core.io.query_bin_or_ascii_int_list(f'MMEMory:LOAD:IQ:STATe?')
return response
def clone(self) -> 'StateCls':
"""
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 = StateCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group