Source code for RsSmw.Implementations.Source.Combined.Power

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


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

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

[docs] def get_start(self) -> float: """ ``[SOURce<HW>]:COMBined:POWer:STARt`` \n Snippet: ``value: float = driver.source.combined.power.get_start()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:COMBined:POWer:STARt?') return Conversions.str_to_float(response)
[docs] def set_start(self, comb_pow_start: float) -> None: """ ``[SOURce<HW>]:COMBined:POWer:STARt`` \n Snippet: ``driver.source.combined.power.set_start(comb_pow_start = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(comb_pow_start) self._core.io.write(f'SOURce<HwInstance>:COMBined:POWer:STARt {param}')
[docs] def get_stop(self) -> float: """ ``[SOURce<HW>]:COMBined:POWer:STOP`` \n Snippet: ``value: float = driver.source.combined.power.get_stop()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:COMBined:POWer:STOP?') return Conversions.str_to_float(response)
[docs] def set_stop(self, comb_pow_stop: float) -> None: """ ``[SOURce<HW>]:COMBined:POWer:STOP`` \n Snippet: ``driver.source.combined.power.set_stop(comb_pow_stop = 1.0)`` \n No help available """ param = Conversions.decimal_value_to_str(comb_pow_stop) self._core.io.write(f'SOURce<HwInstance>:COMBined:POWer:STOP {param}')