from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StreamingCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("streaming", core, parent)
[docs]
def get_status(self) -> str:
"""
``[SOURce<HW>]:BB:ARBitrary:ETHernet:[STReaming]:STATus`` \n
Snippet: ``value: str = driver.source.bb.arbitrary.ethernet.streaming.get_status()`` \n
Queries the status of the streamed I/Q data.
:return: status: string STOPped Streaming of I/Q data stopped or no streaming enabled. CONFigured UDP command-initiated state as in the streamed I/Q data. RUNNing Streaming of I/Q data is enabled, no streaming errors. ERRor Streaming of I/Q data stopped due to an error.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:ETHernet:STReaming:STATus?')
return trim_str_response(response)