from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ModeCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mode", core, parent)
# noinspection PyTypeChecker
[docs]
def get_advanced(self) -> enums.AutoManualMode:
"""
``[SOURce<HW>]:SWEep:POWer:MODE:ADVanced`` \n
Snippet: ``value: enums.AutoManualMode = driver.source.sweep.power.mode.get_advanced()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:SWEep:POWer:MODE:ADVanced?')
return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)
[docs]
def set_advanced(self, pow_mode_adv: enums.AutoManualMode) -> None:
"""
``[SOURce<HW>]:SWEep:POWer:MODE:ADVanced`` \n
Snippet: ``driver.source.sweep.power.mode.set_advanced(pow_mode_adv = enums.AutoManualMode.AUTO)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(pow_mode_adv, enums.AutoManualMode)
self._core.io.write(f'SOURce<HwInstance>:SWEep:POWer:MODE:ADVanced {param}')
# noinspection PyTypeChecker
[docs]
def get_value(self) -> enums.AutoManStep:
"""
``[SOURce<HW>]:SWEep:POWer:MODE`` \n
Snippet: ``value: enums.AutoManStep = driver.source.sweep.power.mode.get_value()`` \n
Sets the cycle mode for the level sweep.
:return: mode: AUTO | MANual | STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the method ``RsSmbv.source.power.manual()`` . The level value increases at each step by the value that you define with method ``RsSmbv.source.power.step.increment()`` . Values directly entered with the method ``RsSmbv.source.power.manual()`` are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with method ``RsSmbv.source.power.step.increment()`` .
"""
response = self._core.io.query_str('SOURce<HwInstance>:SWEep:POWer:MODE?')
return Conversions.str_to_scalar_enum(response, enums.AutoManStep)
[docs]
def set_value(self, mode: enums.AutoManStep) -> None:
"""
``[SOURce<HW>]:SWEep:POWer:MODE`` \n
Snippet: ``driver.source.sweep.power.mode.set_value(mode = enums.AutoManStep.AUTO)`` \n
Sets the cycle mode for the level sweep.
:param mode: AUTO | MANual | STEP AUTO Each trigger triggers exactly one complete sweep. MANual The trigger system is not active. You can trigger every step individually with the method ``RsSmbv.source.power.manual()`` . The level value increases at each step by the value that you define with method ``RsSmbv.source.power.step.increment()`` . Values directly entered with the method ``RsSmbv.source.power.manual()`` are not taken into account. STEP Each trigger triggers one sweep step only. The level increases by the value entered with method ``RsSmbv.source.power.step.increment()`` .
"""
param = Conversions.enum_scalar_to_str(mode, enums.AutoManStep)
self._core.io.write(f'SOURce<HwInstance>:SWEep:POWer:MODE {param}')