Source code for RsSmw.Implementations.Source.Iq.Output.Analog.HpMarker

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HpMarkerCls:
	"""
	| Commands in total: 4
	| Subgroups: 1
	| Direct child commands: 2
	"""

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

	@property
	def adelay(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_adelay'):
			from .Adelay import AdelayCls
			self._adelay = AdelayCls(self._core, self._cmd_group)
		return self._adelay

	# noinspection PyTypeChecker
[docs] def get_voltage(self) -> enums.IqOutHpmVoltage: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:HPMarker:VOLTage`` \n Snippet: ``value: enums.IqOutHpmVoltage = driver.source.iq.output.analog.hpMarker.get_voltage()`` \n Sets the level of the high precision marker signals at the analog I/Q output connectors. Applying this level requires enabling the high precision marker signals: SOURce1:IQ:OUTPut:ANALog:HPMarker:STATe 1 :return: output_voltage: O1V2 | O1V5 | O1V8 | O2V5 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:HPMarker:VOLTage?') return Conversions.str_to_scalar_enum(response, enums.IqOutHpmVoltage)
[docs] def set_voltage(self, output_voltage: enums.IqOutHpmVoltage) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:HPMarker:VOLTage`` \n Snippet: ``driver.source.iq.output.analog.hpMarker.set_voltage(output_voltage = enums.IqOutHpmVoltage.O1V2)`` \n Sets the level of the high precision marker signals at the analog I/Q output connectors. Applying this level requires enabling the high precision marker signals: SOURce1:IQ:OUTPut:ANALog:HPMarker:STATe 1 :param output_voltage: O1V2 | O1V5 | O1V8 | O2V5 """ param = Conversions.enum_scalar_to_str(output_voltage, enums.IqOutHpmVoltage) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:HPMarker:VOLTage {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:HPMarker:[STATe]`` \n Snippet: ``value: bool = driver.source.iq.output.analog.hpMarker.get_state()`` \n Enables the output of high precision marker signals at the analog I/Q output connectors 'I/Q'. For high precision marker signal output, you can only use the analog outputs for one path at a time. If you enable the marker output for one path, the marker output for the other path is disabled. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:HPMarker:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:HPMarker:[STATe]`` \n Snippet: ``driver.source.iq.output.analog.hpMarker.set_state(state = False)`` \n Enables the output of high precision marker signals at the analog I/Q output connectors 'I/Q'. For high precision marker signal output, you can only use the analog outputs for one path at a time. If you enable the marker output for one path, the marker output for the other path is disabled. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:HPMarker:STATe {param}')
def clone(self) -> 'HpMarkerCls': """ 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 = HpMarkerCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group