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
class StreamCls:
"""
| Commands in total: 3
| Subgroups: 2
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("stream", core, parent)
@property
def listPy(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_listPy'):
from .ListPy import ListPyCls
self._listPy = ListPyCls(self._core, self._cmd_group)
return self._listPy
@property
def auto(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_auto'):
from .Auto import AutoCls
self._auto = AutoCls(self._core, self._cmd_group)
return self._auto
[docs]
def set(self, channel: str) -> None:
"""
``MMEMory:LOAD:IQ:STReam`` \n
Snippet: ``driver.applications.k60Transient.massMemory.load.iq.stream.set(channel = 'abc')`` \n
Only available for files that contain more than one data stream from multiple channels: selects the data stream to be
used as input for the currently selected channel. Automatic mode (method ``RsFsw.massMemory.load.iq.stream.auto.set()`` )
is set to OFF.
:param channel: String containing the channel name.
"""
param = Conversions.value_to_quoted_str(channel)
self._core.io.write(f'MMEMory:LOAD:IQ:STReam {param}')
[docs]
def get(self) -> str:
"""
``MMEMory:LOAD:IQ:STReam`` \n
Snippet: ``value: str = driver.applications.k60Transient.massMemory.load.iq.stream.get()`` \n
Only available for files that contain more than one data stream from multiple channels: selects the data stream to be
used as input for the currently selected channel. Automatic mode (method ``RsFsw.massMemory.load.iq.stream.auto.set()`` )
is set to OFF.
:return: channel: String containing the channel name.
"""
response = self._core.io.query_str(f'MMEMory:LOAD:IQ:STReam?')
return trim_str_response(response)
def clone(self) -> 'StreamCls':
"""
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 = StreamCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group