from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SetCls:
"""Set commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("set", core, parent)
[docs] def set(self, packets: str, filterPy=repcap.FilterPy.Default) -> None:
"""SCPI: [SENSe]:EVALuation:FILTer<n>:SET \n
Snippet: driver.applications.k149Uwb.sense.evaluation.filterPy.set.set(packets = 'abc', filterPy = repcap.FilterPy.Default) \n
Sets the packets for the specified packet filter. \n
:param packets: 1..n
:param filterPy: optional repeated capability selector. Default value: Nr1 (settable in the interface 'FilterPy')
"""
param = Conversions.value_to_quoted_str(packets)
filterPy_cmd_val = self._cmd_group.get_repcap_cmd_value(filterPy, repcap.FilterPy)
self._core.io.write(f'SENSe:EVALuation:FILTer{filterPy_cmd_val}:SET {param}')
[docs] def get(self, filterPy=repcap.FilterPy.Default) -> str:
"""SCPI: [SENSe]:EVALuation:FILTer<n>:SET \n
Snippet: value: str = driver.applications.k149Uwb.sense.evaluation.filterPy.set.get(filterPy = repcap.FilterPy.Default) \n
Sets the packets for the specified packet filter. \n
:param filterPy: optional repeated capability selector. Default value: Nr1 (settable in the interface 'FilterPy')
:return: packets: No help available"""
filterPy_cmd_val = self._cmd_group.get_repcap_cmd_value(filterPy, repcap.FilterPy)
response = self._core.io.query_str(f'SENSe:EVALuation:FILTer{filterPy_cmd_val}:SET?')
return trim_str_response(response)