from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class ListPyCls:
"""ListPy commands group definition. 41 total commands, 2 Subgroups, 5 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("listPy", core, parent)
@property
def segment(self):
"""segment commands group. 4 Sub-classes, 0 commands."""
if not hasattr(self, '_segment'):
from .Segment import SegmentCls
self._segment = SegmentCls(self._core, self._cmd_group)
return self._segment
@property
def singleCmw(self):
"""singleCmw commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_singleCmw'):
from .SingleCmw import SingleCmwCls
self._singleCmw = SingleCmwCls(self._core, self._cmd_group)
return self._singleCmw
[docs]
def get_nconnections(self) -> int:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:NCONnections \n
Snippet: value: int = driver.configure.multiEval.listPy.get_nconnections() \n
No command help available \n
:return: no_of_connections: No help available
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:NCONnections?')
return Conversions.str_to_int(response)
[docs]
def set_nconnections(self, no_of_connections: int) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:NCONnections \n
Snippet: driver.configure.multiEval.listPy.set_nconnections(no_of_connections = 1) \n
No command help available \n
:param no_of_connections: No help available
"""
param = Conversions.decimal_value_to_str(no_of_connections)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:NCONnections {param}')
[docs]
def get_count(self) -> int:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:COUNt \n
Snippet: value: int = driver.configure.multiEval.listPy.get_count() \n
Defines the number of segments in the entire measurement interval. \n
:return: segments: numeric Range: 1 to 48
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:COUNt?')
return Conversions.str_to_int(response)
[docs]
def set_count(self, segments: int) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:COUNt \n
Snippet: driver.configure.multiEval.listPy.set_count(segments = 1) \n
Defines the number of segments in the entire measurement interval. \n
:param segments: numeric Range: 1 to 48
"""
param = Conversions.decimal_value_to_str(segments)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:COUNt {param}')
# noinspection PyTypeChecker
[docs]
def get_malgorithm(self) -> enums.PatternIndependent:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:MALGorithm \n
Snippet: value: enums.PatternIndependent = driver.configure.multiEval.listPy.get_malgorithm() \n
No command help available \n
:return: pattern_independent: No help available
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:MALGorithm?')
return Conversions.str_to_scalar_enum(response, enums.PatternIndependent)
[docs]
def set_malgorithm(self, pattern_independent: enums.PatternIndependent) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:MALGorithm \n
Snippet: driver.configure.multiEval.listPy.set_malgorithm(pattern_independent = enums.PatternIndependent.PINDependent) \n
No command help available \n
:param pattern_independent: No help available
"""
param = Conversions.enum_scalar_to_str(pattern_independent, enums.PatternIndependent)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:MALGorithm {param}')
# noinspection PyTypeChecker
[docs]
def get_cmode(self) -> enums.ParameterSetMode:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:CMODe \n
Snippet: value: enums.ParameterSetMode = driver.configure.multiEval.listPy.get_cmode() \n
No command help available \n
:return: connector_mode: No help available
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:CMODe?')
return Conversions.str_to_scalar_enum(response, enums.ParameterSetMode)
[docs]
def set_cmode(self, connector_mode: enums.ParameterSetMode) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:CMODe \n
Snippet: driver.configure.multiEval.listPy.set_cmode(connector_mode = enums.ParameterSetMode.GLOBal) \n
No command help available \n
:param connector_mode: No help available
"""
param = Conversions.enum_scalar_to_str(connector_mode, enums.ParameterSetMode)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:CMODe {param}')
[docs]
def get_value(self) -> bool:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST \n
Snippet: value: bool = driver.configure.multiEval.listPy.get_value() \n
Enables or disables the list mode. \n
:return: enable: OFF | ON OFF: disable list mode ON: enable list mode
"""
response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST?')
return Conversions.str_to_bool(response)
[docs]
def set_value(self, enable: bool) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST \n
Snippet: driver.configure.multiEval.listPy.set_value(enable = False) \n
Enables or disables the list mode. \n
:param enable: OFF | ON OFF: disable list mode ON: enable list mode
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST {param}')
def clone(self) -> 'ListPyCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = ListPyCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group