Source code for RsCmwBluetoothMeas.Implementations.Configure.Hdr.Result

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ResultCls: """Result commands group definition. 10 total commands, 0 Subgroups, 10 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("result", core, parent) # noinspection PyTypeChecker
[docs] class AllStruct(StructBase): # From WriteStructDefinition CmdPropertyTemplate.xml """Structure for setting input parameters. Fields: \n - Devm: bool: No parameter help available - Phase_Diff: bool: No parameter help available - Tx_Scalars: bool: No parameter help available - Iq_Absolute: bool: No parameter help available - Iq_Differential: bool: No parameter help available - Iq_Error: bool: No parameter help available - Phase_Encoding: bool: No parameter help available - Power_Vs_Time: bool: No parameter help available - Spectrum_Gat_Acp: bool: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_bool('Devm'), ArgStruct.scalar_bool('Phase_Diff'), ArgStruct.scalar_bool('Tx_Scalars'), ArgStruct.scalar_bool('Iq_Absolute'), ArgStruct.scalar_bool('Iq_Differential'), ArgStruct.scalar_bool('Iq_Error'), ArgStruct.scalar_bool('Phase_Encoding'), ArgStruct.scalar_bool('Power_Vs_Time'), ArgStruct.scalar_bool('Spectrum_Gat_Acp')] def __init__(self): StructBase.__init__(self, self) self.Devm: bool = None self.Phase_Diff: bool = None self.Tx_Scalars: bool = None self.Iq_Absolute: bool = None self.Iq_Differential: bool = None self.Iq_Error: bool = None self.Phase_Encoding: bool = None self.Power_Vs_Time: bool = None self.Spectrum_Gat_Acp: bool = None
[docs] def get_all(self) -> AllStruct: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult[:ALL] \n Snippet: value: AllStruct = driver.configure.hdr.result.get_all() \n No command help available \n :return: structure: for return value, see the help for AllStruct structure arguments. """ return self._core.io.query_struct('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:ALL?', self.__class__.AllStruct())
[docs] def set_all(self, value: AllStruct) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult[:ALL] \n Snippet with structure: \n structure = driver.configure.hdr.result.AllStruct() \n structure.Devm: bool = False \n structure.Phase_Diff: bool = False \n structure.Tx_Scalars: bool = False \n structure.Iq_Absolute: bool = False \n structure.Iq_Differential: bool = False \n structure.Iq_Error: bool = False \n structure.Phase_Encoding: bool = False \n structure.Power_Vs_Time: bool = False \n structure.Spectrum_Gat_Acp: bool = False \n driver.configure.hdr.result.set_all(value = structure) \n No command help available \n :param value: see the help for AllStruct structure arguments. """ self._core.io.write_struct('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:ALL', value)
[docs] def get_power_vs_time(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PVTime \n Snippet: value: bool = driver.configure.hdr.result.get_power_vs_time() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PVTime?') return Conversions.str_to_bool(response)
[docs] def set_power_vs_time(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PVTime \n Snippet: driver.configure.hdr.result.set_power_vs_time(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PVTime {param}')
[docs] def get_sgacp(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:SGACp \n Snippet: value: bool = driver.configure.hdr.result.get_sgacp() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:SGACp?') return Conversions.str_to_bool(response)
[docs] def set_sgacp(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:SGACp \n Snippet: driver.configure.hdr.result.set_sgacp(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:SGACp {param}')
[docs] def get_pencoding(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PENCoding \n Snippet: value: bool = driver.configure.hdr.result.get_pencoding() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PENCoding?') return Conversions.str_to_bool(response)
[docs] def set_pencoding(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PENCoding \n Snippet: driver.configure.hdr.result.set_pencoding(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PENCoding {param}')
[docs] def get_iq_error(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQERr \n Snippet: value: bool = driver.configure.hdr.result.get_iq_error() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQERr?') return Conversions.str_to_bool(response)
[docs] def set_iq_error(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQERr \n Snippet: driver.configure.hdr.result.set_iq_error(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQERr {param}')
[docs] def get_iq_difference(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQDiff \n Snippet: value: bool = driver.configure.hdr.result.get_iq_difference() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQDiff?') return Conversions.str_to_bool(response)
[docs] def set_iq_difference(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQDiff \n Snippet: driver.configure.hdr.result.set_iq_difference(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQDiff {param}')
[docs] def get_iq_absolute(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQABsolute \n Snippet: value: bool = driver.configure.hdr.result.get_iq_absolute() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQABsolute?') return Conversions.str_to_bool(response)
[docs] def set_iq_absolute(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQABsolute \n Snippet: driver.configure.hdr.result.set_iq_absolute(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:IQABsolute {param}')
[docs] def get_pdifference(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PDIFference \n Snippet: value: bool = driver.configure.hdr.result.get_pdifference() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PDIFference?') return Conversions.str_to_bool(response)
[docs] def set_pdifference(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PDIFference \n Snippet: driver.configure.hdr.result.set_pdifference(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:PDIFference {param}')
[docs] def get_dev_magnitude(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:DEVMagnitude \n Snippet: value: bool = driver.configure.hdr.result.get_dev_magnitude() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:DEVMagnitude?') return Conversions.str_to_bool(response)
[docs] def set_dev_magnitude(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:DEVMagnitude \n Snippet: driver.configure.hdr.result.set_dev_magnitude(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:DEVMagnitude {param}')
[docs] def get_tx_scalar(self) -> bool: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:TXSCalar \n Snippet: value: bool = driver.configure.hdr.result.get_tx_scalar() \n No command help available \n :return: state: No help available """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:TXSCalar?') return Conversions.str_to_bool(response)
[docs] def set_tx_scalar(self, state: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:TXSCalar \n Snippet: driver.configure.hdr.result.set_tx_scalar(state = False) \n No command help available \n :param state: No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:HDR:RESult:TXSCalar {param}')