Source code for RsCMPX_BluetoothMeas.Implementations.Configure.Bluetooth.Measurement.InputSignal.Oslots

from typing import List

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class OslotsCls: """Oslots commands group definition. 5 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("oslots", core, parent) @property def lowEnergy(self): """lowEnergy commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_lowEnergy'): from .LowEnergy import LowEnergyCls self._lowEnergy = LowEnergyCls(self._core, self._cmd_group) return self._lowEnergy
[docs] def get_edrate(self) -> List[int]: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:EDRate \n Snippet: value: List[int] = driver.configure.bluetooth.measurement.inputSignal.oslots.get_edrate() \n No command help available \n :return: no_of_off_slots: No help available """ response = self._core.io.query_bin_or_ascii_int_list('CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:EDRate?') return response
[docs] def set_edrate(self, no_of_off_slots: List[int]) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:EDRate \n Snippet: driver.configure.bluetooth.measurement.inputSignal.oslots.set_edrate(no_of_off_slots = [1, 2, 3]) \n No command help available \n :param no_of_off_slots: No help available """ param = Conversions.list_to_csv_str(no_of_off_slots) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:EDRate {param}')
[docs] def get_brate(self) -> List[int]: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:BRATe \n Snippet: value: List[int] = driver.configure.bluetooth.measurement.inputSignal.oslots.get_brate() \n No command help available \n :return: no_of_off_slots: No help available """ response = self._core.io.query_bin_or_ascii_int_list('CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:BRATe?') return response
[docs] def set_brate(self, no_of_off_slots: List[int]) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:BRATe \n Snippet: driver.configure.bluetooth.measurement.inputSignal.oslots.set_brate(no_of_off_slots = [1, 2, 3]) \n No command help available \n :param no_of_off_slots: No help available """ param = Conversions.list_to_csv_str(no_of_off_slots) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:ISIGnal:OSLots:BRATe {param}')
def clone(self) -> 'OslotsCls': """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 = OslotsCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group