Source code for rsrtx.Implementations.Probe.Deembedding.Bandwidth

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


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

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

[docs] def set(self, probe_bandwidth: float, probe=repcap.Probe.Default) -> None: """ ``PROBe<*>:DEEMbedding:BANDwidth`` \n Snippet: ``driver.probe.deembedding.bandwidth.set(probe_bandwidth = 1.0, probe = repcap.Probe.Default)`` \n Sets the maximum bandwidth until which the signal is corrected. This maximum value is the minimum bandwidth value of probe, probe tip and oscilloscope bandwidth, and can not be higher than the highest frequency in a used S-parameter file. Consider that most tip modules support the full bandwidth of the probe amplifier, but some tip modules have limited bandwidth. :param probe_bandwidth: 10000 to 16E+9 :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') """ param = Conversions.decimal_value_to_str(probe_bandwidth) probe_cmd_val = self._cmd_group.get_repcap_cmd_value(probe, repcap.Probe) self._core.io.write_with_opc(f'PROBe{probe_cmd_val}:DEEMbedding:BANDwidth {param}')
[docs] def get(self, probe=repcap.Probe.Default) -> float: """ ``PROBe<*>:DEEMbedding:BANDwidth`` \n Snippet: ``value: float = driver.probe.deembedding.bandwidth.get(probe = repcap.Probe.Default)`` \n Sets the maximum bandwidth until which the signal is corrected. This maximum value is the minimum bandwidth value of probe, probe tip and oscilloscope bandwidth, and can not be higher than the highest frequency in a used S-parameter file. Consider that most tip modules support the full bandwidth of the probe amplifier, but some tip modules have limited bandwidth. :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') :return: probe_bandwidth: 10000 to 16E+9 """ probe_cmd_val = self._cmd_group.get_repcap_cmd_value(probe, repcap.Probe) response = self._core.io.query_str_with_opc(f'PROBe{probe_cmd_val}:DEEMbedding:BANDwidth?') return Conversions.str_to_float(response)