Source code for rsrtx.Implementations.Hdefinition

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


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

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

[docs] def get_state(self) -> bool: """ ``HDEFinition:STATe`` \n Snippet: ``value: bool = driver.hdefinition.get_state()`` \n Activates the high definition mode of the instrument. :return: state: ON: high definition mode, up to 16 bit digital resolution OFF: normal oscilloscope mode """ response = self._core.io.query_str_with_opc('HDEFinition:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``HDEFinition:STATe`` \n Snippet: ``driver.hdefinition.set_state(state = False)`` \n Activates the high definition mode of the instrument. :param state: ON: high definition mode, up to 16 bit digital resolution OFF: normal oscilloscope mode """ param = Conversions.bool_to_str(state) self._core.io.write_with_opc(f'HDEFinition:STATe {param}')
[docs] def get_bandwidth(self) -> float: """ ``HDEFinition:BWIDth`` \n Snippet: ``value: float = driver.hdefinition.get_bandwidth()`` \n Sets the filter bandwidth for the high definition mode. :return: bandwidth: 10000 to max. 2 GHz, depending on the instrument bandwidth. """ response = self._core.io.query_str_with_opc('HDEFinition:BWIDth?') return Conversions.str_to_float(response)
[docs] def set_bandwidth(self, bandwidth: float) -> None: """ ``HDEFinition:BWIDth`` \n Snippet: ``driver.hdefinition.set_bandwidth(bandwidth = 1.0)`` \n Sets the filter bandwidth for the high definition mode. :param bandwidth: 10000 to max. 2 GHz, depending on the instrument bandwidth. """ param = Conversions.decimal_value_to_str(bandwidth) self._core.io.write_with_opc(f'HDEFinition:BWIDth {param}')
[docs] def get_resolution(self) -> float: """ ``HDEFinition:RESolution`` \n Snippet: ``value: float = driver.hdefinition.get_resolution()`` \n Returns the resulting digital resolution in high definition mode. :return: resolution: 0 to 16 """ response = self._core.io.query_str_with_opc('HDEFinition:RESolution?') return Conversions.str_to_float(response)