Source code for RsCma.Implementations.Configure.AfRf.Measurement.Demodulation.FilterPy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FilterPyCls: """FilterPy commands group definition. 14 total commands, 4 Subgroups, 6 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("filterPy", core, parent) @property def dwidth(self): """dwidth commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_dwidth'): from .Dwidth import DwidthCls self._dwidth = DwidthCls(self._core, self._cmd_group) return self._dwidth @property def dfrequency(self): """dfrequency commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_dfrequency'): from .Dfrequency import DfrequencyCls self._dfrequency = DfrequencyCls(self._core, self._cmd_group) return self._dfrequency @property def bpass(self): """bpass commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_bpass'): from .Bpass import BpassCls self._bpass = BpassCls(self._core, self._cmd_group) return self._bpass @property def notch(self): """notch commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_notch'): from .Notch import NotchCls self._notch = NotchCls(self._core, self._cmd_group) return self._notch
[docs] def get_enable(self) -> bool: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ENABle \n Snippet: value: bool = driver.configure.afRf.measurement.demodulation.filterPy.get_enable() \n Selects whether the demodulation results are measured before or after the filters in the RF input path. For FM stereo, the demodulation results are always measured before the filters. \n :return: disable: No help available """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, disable: bool) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ENABle \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_enable(disable = False) \n Selects whether the demodulation results are measured before or after the filters in the RF input path. For FM stereo, the demodulation results are always measured before the filters. \n :param disable: OFF | ON OFF Measure before filters ON Measure after filters """ param = Conversions.bool_to_str(disable) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ENABle {param}')
# noinspection PyTypeChecker
[docs] def get_weighting(self) -> enums.WeightingFilter: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:WEIGhting \n Snippet: value: enums.WeightingFilter = driver.configure.afRf.measurement.demodulation.filterPy.get_weighting() \n Selects the weighting filter in the RF input path. \n :return: weighting: OFF | AWEighting | CCITt | CMESsage OFF Filter disabled AWEighting A-weighting filter CCITt CCITT weighting filter CMESsage C-message weighting filter """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:WEIGhting?') return Conversions.str_to_scalar_enum(response, enums.WeightingFilter)
[docs] def set_weighting(self, weighting: enums.WeightingFilter) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:WEIGhting \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_weighting(weighting = enums.WeightingFilter.AWEighting) \n Selects the weighting filter in the RF input path. \n :param weighting: OFF | AWEighting | CCITt | CMESsage OFF Filter disabled AWEighting A-weighting filter CCITt CCITT weighting filter CMESsage C-message weighting filter """ param = Conversions.enum_scalar_to_str(weighting, enums.WeightingFilter) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:WEIGhting {param}')
# noinspection PyTypeChecker
[docs] def get_deemphasis(self) -> enums.PreDeEmphasis: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:DEEMphasis \n Snippet: value: enums.PreDeEmphasis = driver.configure.afRf.measurement.demodulation.filterPy.get_deemphasis() \n Configures the de-emphasis filter in the RF input path. \n :return: deemphasis: OFF | T50 | T75 | T750 OFF Filter disabled T50, T75, T750 Time constant 50 us / 75 us / 750 us """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:DEEMphasis?') return Conversions.str_to_scalar_enum(response, enums.PreDeEmphasis)
[docs] def set_deemphasis(self, deemphasis: enums.PreDeEmphasis) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:DEEMphasis \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_deemphasis(deemphasis = enums.PreDeEmphasis.OFF) \n Configures the de-emphasis filter in the RF input path. \n :param deemphasis: OFF | T50 | T75 | T750 OFF Filter disabled T50, T75, T750 Time constant 50 us / 75 us / 750 us """ param = Conversions.enum_scalar_to_str(deemphasis, enums.PreDeEmphasis) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:DEEMphasis {param}')
[docs] def get_robust_auto(self) -> bool: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ROBustauto \n Snippet: value: bool = driver.configure.afRf.measurement.demodulation.filterPy.get_robust_auto() \n Enables or disables robust automatic mode for distortion signal filtering in the RF input path. \n :return: automatic_mode: OFF | ON """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ROBustauto?') return Conversions.str_to_bool(response)
[docs] def set_robust_auto(self, automatic_mode: bool) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ROBustauto \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_robust_auto(automatic_mode = False) \n Enables or disables robust automatic mode for distortion signal filtering in the RF input path. \n :param automatic_mode: OFF | ON """ param = Conversions.bool_to_str(automatic_mode) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:ROBustauto {param}')
# noinspection PyTypeChecker
[docs] def get_lpass(self) -> enums.LowpassFilterExtended: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:LPASs \n Snippet: value: enums.LowpassFilterExtended = driver.configure.afRf.measurement.demodulation.filterPy.get_lpass() \n Configures the lowpass filter in the RF input path. \n :return: lowpass: OFF | F255 | F3K | F3K4 | F4K | F15K OFF Filter disabled F255, F3K, F3K4, F4K, F15K Cutoff frequency 255 Hz / 3 kHz / 3.4 kHz / 4 kHz / 15 kHz """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:LPASs?') return Conversions.str_to_scalar_enum(response, enums.LowpassFilterExtended)
[docs] def set_lpass(self, lowpass: enums.LowpassFilterExtended) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:LPASs \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_lpass(lowpass = enums.LowpassFilterExtended.F15K) \n Configures the lowpass filter in the RF input path. \n :param lowpass: OFF | F255 | F3K | F3K4 | F4K | F15K OFF Filter disabled F255, F3K, F3K4, F4K, F15K Cutoff frequency 255 Hz / 3 kHz / 3.4 kHz / 4 kHz / 15 kHz """ param = Conversions.enum_scalar_to_str(lowpass, enums.LowpassFilterExtended) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:LPASs {param}')
# noinspection PyTypeChecker
[docs] def get_hpass(self) -> enums.HighpassFilterExtended: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:HPASs \n Snippet: value: enums.HighpassFilterExtended = driver.configure.afRf.measurement.demodulation.filterPy.get_hpass() \n Configures the highpass filter in the RF input path. \n :return: highpass: OFF | F6 | F50 | F300 OFF Filter disabled F6, F50, F300 Cutoff frequency 6 Hz / 50 Hz / 300 Hz """ response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:HPASs?') return Conversions.str_to_scalar_enum(response, enums.HighpassFilterExtended)
[docs] def set_hpass(self, highpass: enums.HighpassFilterExtended) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:HPASs \n Snippet: driver.configure.afRf.measurement.demodulation.filterPy.set_hpass(highpass = enums.HighpassFilterExtended.F300) \n Configures the highpass filter in the RF input path. \n :param highpass: OFF | F6 | F50 | F300 OFF Filter disabled F6, F50, F300 Cutoff frequency 6 Hz / 50 Hz / 300 Hz """ param = Conversions.enum_scalar_to_str(highpass, enums.HighpassFilterExtended) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:DEModulation:FILTer:HPASs {param}')
def clone(self) -> 'FilterPyCls': """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 = FilterPyCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group