from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PvSymbolCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pvSymbol", core, parent)
[docs]
def read(self, resource=repcap.Resource.Default) -> List[float]:
"""
``READ:NRSub:MEASurement<Instance>:SRS[:SRESource<Resource>]:PVSYmbol`` \n
Snippet: ``value: List[float] = driver.nrSubMeas.srs.sresource.pvSymbol.read(resource = repcap.Resource.Default)`` \n
Return the single-value results of the power vs symbol measurement for SRS resource <r>. See also 'Square Power vs
Symbol'.
Suppressed linked return values: reliability
:param resource: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Sresource')
:return: power: Comma-separated list of 10 average power values, one value per SRS transmission.
"""
resource_cmd_val = self._cmd_group.get_repcap_cmd_value(resource, repcap.Resource)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'READ:NRSub:MEASurement<Instance>:SRS:SRESource{resource_cmd_val}:PVSYmbol?', suppressed)
return response
[docs]
def fetch(self, resource=repcap.Resource.Default) -> List[float]:
"""
``FETCh:NRSub:MEASurement<Instance>:SRS[:SRESource<Resource>]:PVSYmbol`` \n
Snippet: ``value: List[float] = driver.nrSubMeas.srs.sresource.pvSymbol.fetch(resource = repcap.Resource.Default)`` \n
Return the single-value results of the power vs symbol measurement for SRS resource <r>. See also 'Square Power vs
Symbol'.
Suppressed linked return values: reliability
:param resource: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Sresource')
:return: power: Comma-separated list of 10 average power values, one value per SRS transmission.
"""
resource_cmd_val = self._cmd_group.get_repcap_cmd_value(resource, repcap.Resource)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_bin_or_ascii_float_list_suppressed(f'FETCh:NRSub:MEASurement<Instance>:SRS:SRESource{resource_cmd_val}:PVSYmbol?', suppressed)
return response