from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .......Internal.Types import DataType
from ....... import enums
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class MinimumCls:
"""Minimum commands group definition. 3 total commands, 0 Subgroups, 3 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("minimum", core, parent)
[docs]
def fetch(self, ppdu=repcap.Ppdu.Nr1) -> float:
"""SCPI: FETCh:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum<PPDU> \n
Snippet: value: float = driver.uwbMeas.multiEval.modulation.sts.plevel.minimum.fetch(ppdu = repcap.Ppdu.Nr1) \n
Returns the STS pulse level according to the FIRA specification, relative to the SHR pulse level. \n
Suppressed linked return values: reliability \n
:param ppdu: optional repeated capability selector. Default value: Nr1
:return: level: No help available"""
ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_str_suppressed(f'FETCh:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum{ppdu_cmd_val}?', suppressed)
return Conversions.str_to_float(response)
[docs]
def read(self, ppdu=repcap.Ppdu.Nr1) -> float:
"""SCPI: READ:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum<PPDU> \n
Snippet: value: float = driver.uwbMeas.multiEval.modulation.sts.plevel.minimum.read(ppdu = repcap.Ppdu.Nr1) \n
Returns the STS pulse level according to the FIRA specification, relative to the SHR pulse level. \n
Suppressed linked return values: reliability \n
:param ppdu: optional repeated capability selector. Default value: Nr1
:return: level: No help available"""
ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_str_suppressed(f'READ:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum{ppdu_cmd_val}?', suppressed)
return Conversions.str_to_float(response)
# noinspection PyTypeChecker
[docs]
def calculate(self, ppdu=repcap.Ppdu.Nr1) -> enums.ResultStatus2:
"""SCPI: CALCulate:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum<PPDU> \n
Snippet: value: enums.ResultStatus2 = driver.uwbMeas.multiEval.modulation.sts.plevel.minimum.calculate(ppdu = repcap.Ppdu.Nr1) \n
Returns the STS pulse level according to the FIRA specification, relative to the SHR pulse level. \n
Suppressed linked return values: reliability \n
:param ppdu: optional repeated capability selector. Default value: Nr1
:return: level: No help available"""
ppdu_cmd_val = self._cmd_group.get_repcap_cmd_value(ppdu, repcap.Ppdu)
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_str_suppressed(f'CALCulate:UWB:MEASurement<Instance>:MEValuation:MODulation:STS:PLEVel:MINimum{ppdu_cmd_val}?', suppressed)
return Conversions.str_to_scalar_enum(response, enums.ResultStatus2)