from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ScaptureCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("scapture", core, parent)
[docs]
def set(self, state: enums.SweepMode) -> None:
"""
``[SENSe]:NR5G:FRAMe:SCAPture`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.nr5G.frame.scapture.set(state = enums.SweepMode.AUTO)`` \n
Selects the signal capture mode for combined multiple carrier measurements.
:param state: AUTO Automatically determines how many carriers are captured. SINGle Captures a single capture buffer for each carrier.
"""
param = Conversions.enum_scalar_to_str(state, enums.SweepMode)
self._core.io.write(f'SENSe:NR5G:FRAMe:SCAPture {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.SweepMode:
"""
``[SENSe]:NR5G:FRAMe:SCAPture`` \n
Snippet: ``value: enums.SweepMode = driver.applications.k14Xnr5G.sense.nr5G.frame.scapture.get()`` \n
Selects the signal capture mode for combined multiple carrier measurements.
:return: state: AUTO Automatically determines how many carriers are captured. SINGle Captures a single capture buffer for each carrier.
"""
response = self._core.io.query_str(f'SENSe:NR5G:FRAMe:SCAPture?')
return Conversions.str_to_scalar_enum(response, enums.SweepMode)