Source code for rsrtx.Implementations.Cdr.Software.Pll.RelBwidth

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RelBwidthCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("relBwidth", core, parent)

[docs] def set(self, pll_rel_bw: float, software=repcap.Software.Default) -> None: """ ``CDR:SOFTware<*>:PLL:RELBwidth`` \n Snippet: ``driver.cdr.software.pll.relBwidth.set(pll_rel_bw = 1.0, software = repcap.Software.Default)`` \n Sets the relative bandwidth, that is the ratio of the nominal bit rate to the PLL bandwidth. :param pll_rel_bw: 10 to 6000 :param software: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Software') """ param = Conversions.decimal_value_to_str(pll_rel_bw) software_cmd_val = self._cmd_group.get_repcap_cmd_value(software, repcap.Software) self._core.io.write_with_opc(f'CDR:SOFTware{software_cmd_val}:PLL:RELBwidth {param}')
[docs] def get(self, software=repcap.Software.Default) -> float: """ ``CDR:SOFTware<*>:PLL:RELBwidth`` \n Snippet: ``value: float = driver.cdr.software.pll.relBwidth.get(software = repcap.Software.Default)`` \n Sets the relative bandwidth, that is the ratio of the nominal bit rate to the PLL bandwidth. :param software: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Software') :return: pll_rel_bw: 10 to 6000 """ software_cmd_val = self._cmd_group.get_repcap_cmd_value(software, repcap.Software) response = self._core.io.query_str_with_opc(f'CDR:SOFTware{software_cmd_val}:PLL:RELBwidth?') return Conversions.str_to_float(response)