Source code for RsCmwWlanMeas.Implementations.Configure.MultiEval.ListPy

from typing import List

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. 30 total commands, 4 Subgroups, 12 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. 13 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 @property def scount(self): """scount commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_scount'): from .Scount import ScountCls self._scount = ScountCls(self._core, self._cmd_group) return self._scount @property def result(self): """result commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_result'): from .Result import ResultCls self._result = ResultCls(self._core, self._cmd_group) return self._result
[docs] def get_count(self) -> int: """SCPI: CONFigure:WLAN: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: no_of_segments: numeric Range: 1 to 100 """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:COUNt?') return Conversions.str_to_int(response)
[docs] def set_count(self, no_of_segments: int) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:COUNt \n Snippet: driver.configure.multiEval.listPy.set_count(no_of_segments = 1) \n Defines the number of segments in the entire measurement interval. \n :param no_of_segments: numeric Range: 1 to 100 """ param = Conversions.decimal_value_to_str(no_of_segments) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:COUNt {param}')
# noinspection PyTypeChecker
[docs] def get_cmode(self) -> enums.ParameterSetMode: """SCPI: CONFigure:WLAN: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:WLAN: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:WLAN: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:WLAN:MEASurement<Instance>:MEValuation:LIST:CMODe {param}')
[docs] def get_stime(self) -> List[float]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STIMe \n Snippet: value: List[float] = driver.configure.multiEval.listPy.get_stime() \n Specifies the segment times for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :return: segment_times: No help available """ response = self._core.io.query_bin_or_ascii_float_list('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STIMe?') return response
[docs] def set_stime(self, segment_times: List[float]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STIMe \n Snippet: driver.configure.multiEval.listPy.set_stime(segment_times = [1.1, 2.2, 3.3]) \n Specifies the segment times for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :param segment_times: No help available """ param = Conversions.list_to_csv_str(segment_times) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STIMe {param}')
[docs] def get_mtime(self) -> List[float]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MTIMe \n Snippet: value: List[float] = driver.configure.multiEval.listPy.get_mtime() \n Specifies the measurement times for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: meas_times: No help available """ response = self._core.io.query_bin_or_ascii_float_list('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MTIMe?') return response
[docs] def set_mtime(self, meas_times: List[float]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MTIMe \n Snippet: driver.configure.multiEval.listPy.set_mtime(meas_times = [1.1, 2.2, 3.3]) \n Specifies the measurement times for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param meas_times: No help available """ param = Conversions.list_to_csv_str(meas_times) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MTIMe {param}')
[docs] def get_moffset(self) -> List[float]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MOFFset \n Snippet: value: List[float] = driver.configure.multiEval.listPy.get_moffset() \n Specifies the measurement offsets for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: meas_offsets: No help available """ response = self._core.io.query_bin_or_ascii_float_list('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MOFFset?') return response
[docs] def set_moffset(self, meas_offsets: List[float]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MOFFset \n Snippet: driver.configure.multiEval.listPy.set_moffset(meas_offsets = [1.1, 2.2, 3.3]) \n Specifies the measurement offsets for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param meas_offsets: No help available """ param = Conversions.list_to_csv_str(meas_offsets) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:MOFFset {param}')
[docs] def get_envelope_power(self) -> List[float]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:ENPower \n Snippet: value: List[float] = driver.configure.multiEval.listPy.get_envelope_power() \n Specifies the expected nominal power of the measured RF signal for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: levels: No help available """ response = self._core.io.query_bin_or_ascii_float_list('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:ENPower?') return response
[docs] def set_envelope_power(self, levels: List[float]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:ENPower \n Snippet: driver.configure.multiEval.listPy.set_envelope_power(levels = [1.1, 2.2, 3.3]) \n Specifies the expected nominal power of the measured RF signal for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param levels: No help available """ param = Conversions.list_to_csv_str(levels) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:ENPower {param}')
[docs] def get_frequency(self) -> List[float]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:FREQuency \n Snippet: value: List[float] = driver.configure.multiEval.listPy.get_frequency() \n Specifies the measurement frequencies for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: frequencies: No help available """ response = self._core.io.query_bin_or_ascii_float_list('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:FREQuency?') return response
[docs] def set_frequency(self, frequencies: List[float]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:FREQuency \n Snippet: driver.configure.multiEval.listPy.set_frequency(frequencies = [1.1, 2.2, 3.3]) \n Specifies the measurement frequencies for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param frequencies: No help available """ param = Conversions.list_to_csv_str(frequencies) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:FREQuency {param}')
# noinspection PyTypeChecker
[docs] def get_standard(self) -> List[enums.IeeeStandard]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STANdard \n Snippet: value: List[enums.IeeeStandard] = driver.configure.multiEval.listPy.get_standard() \n Specifies the standard for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :return: standards: No help available """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STANdard?') return Conversions.str_to_list_enum(response, enums.IeeeStandard)
[docs] def set_standard(self, standards: List[enums.IeeeStandard]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STANdard \n Snippet: driver.configure.multiEval.listPy.set_standard(standards = [IeeeStandard.DSSS, IeeeStandard.VHTofdm]) \n Specifies the standard for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :param standards: No help available """ param = Conversions.enum_list_to_str(standards, enums.IeeeStandard) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:STANdard {param}')
# noinspection PyTypeChecker
[docs] def get_bandwidth(self) -> List[enums.Bandwidth]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BWIDth \n Snippet: value: List[enums.Bandwidth] = driver.configure.multiEval.listPy.get_bandwidth() \n Specifies the channel bandwidths for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: bandwidths: No help available """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BWIDth?') return Conversions.str_to_list_enum(response, enums.Bandwidth)
[docs] def set_bandwidth(self, bandwidths: List[enums.Bandwidth]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BWIDth \n Snippet: driver.configure.multiEval.listPy.set_bandwidth(bandwidths = [Bandwidth.BW05mhz, Bandwidth.BW88mhz]) \n Specifies the channel bandwidths for all segments in list mode. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param bandwidths: No help available """ param = Conversions.enum_list_to_str(bandwidths, enums.Bandwidth) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BWIDth {param}')
# noinspection PyTypeChecker
[docs] def get_btype(self) -> List[enums.BurstTypeB]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BTYPe \n Snippet: value: List[enums.BurstTypeB] = driver.configure.multiEval.listPy.get_btype() \n Specifies the burst types for standard 802.11n for all segments in list mode. Do not use the command for other standards. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :return: burst_types: No help available """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BTYPe?') return Conversions.str_to_list_enum(response, enums.BurstTypeB)
[docs] def set_btype(self, burst_types: List[enums.BurstTypeB]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BTYPe \n Snippet: driver.configure.multiEval.listPy.set_btype(burst_types = [BurstTypeB.GREenfield, BurstTypeB.MIXed]) \n Specifies the burst types for standard 802.11n for all segments in list mode. Do not use the command for other standards. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas.Configure.MultiEval.ListPy.count. \n :param burst_types: No help available """ param = Conversions.enum_list_to_str(burst_types, enums.BurstTypeB) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:BTYPe {param}')
[docs] def get_rtrigger(self) -> List[bool]: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:RTRigger \n Snippet: value: List[bool] = driver.configure.multiEval.listPy.get_rtrigger() \n Specifies, whether the measurement in list mode waits for a trigger event before measuring the segment, or not. For the first segment, the value OFF is always interpreted as ON. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :return: retriggers: No help available """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:RTRigger?') return Conversions.str_to_bool_list(response)
[docs] def set_rtrigger(self, retriggers: List[bool]) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:RTRigger \n Snippet: driver.configure.multiEval.listPy.set_rtrigger(retriggers = [True, False, True]) \n Specifies, whether the measurement in list mode waits for a trigger event before measuring the segment, or not. For the first segment, the value OFF is always interpreted as ON. The values in curly brackets {} are specified for each active segment: {...}seg 1, {...}seg 2, ..., {...}seg n. The number of active segments n is determined by method RsCmwWlanMeas. Configure.MultiEval.ListPy.count. \n :param retriggers: No help available """ param = Conversions.list_to_csv_str(retriggers) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST:RTRigger {param}')
[docs] def get_value(self) -> bool: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST \n Snippet: value: bool = driver.configure.multiEval.listPy.get_value() \n Enables or disables the list mode. \n :return: list_mode_enable: OFF | ON OFF: Disable list mode. ON: Enable list mode. """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST?') return Conversions.str_to_bool(response)
[docs] def set_value(self, list_mode_enable: bool) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:LIST \n Snippet: driver.configure.multiEval.listPy.set_value(list_mode_enable = False) \n Enables or disables the list mode. \n :param list_mode_enable: OFF | ON OFF: Disable list mode. ON: Enable list mode. """ param = Conversions.bool_to_str(list_mode_enable) self._core.io.write(f'CONFigure:WLAN: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