from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class VoutCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("vout", core, parent)
[docs]
def get_max(self) -> float:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VOUT:MAX`` \n
Snippet: ``value: float = driver.source.iq.output.analog.envelope.vout.get_max()`` \n
Queries the minimum and maximum values of the estimated envelope output voltage Vout.
:return: vout_max: float Range: 0.04 to 8
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VOUT:MAX?')
return Conversions.str_to_float(response)
[docs]
def set_max(self, vout_max: float) -> None:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VOUT:MAX`` \n
Snippet: ``driver.source.iq.output.analog.envelope.vout.set_max(vout_max = 1.0)`` \n
Queries the minimum and maximum values of the estimated envelope output voltage Vout.
:param vout_max: float Range: 0.04 to 8
"""
param = Conversions.decimal_value_to_str(vout_max)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VOUT:MAX {param}')
[docs]
def get_min(self) -> float:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VOUT:MIN`` \n
Snippet: ``value: float = driver.source.iq.output.analog.envelope.vout.get_min()`` \n
Queries the minimum and maximum values of the estimated envelope output voltage Vout.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VOUT:MIN?')
return Conversions.str_to_float(response)
[docs]
def set_min(self, vout_min: float) -> None:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VOUT:MIN`` \n
Snippet: ``driver.source.iq.output.analog.envelope.vout.set_min(vout_min = 1.0)`` \n
Queries the minimum and maximum values of the estimated envelope output voltage Vout.
:param vout_min: float Range: 0.04 to 8
"""
param = Conversions.decimal_value_to_str(vout_min)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VOUT:MIN {param}')