from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LowerCls:
"""Lower commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("lower", core, parent)
[docs] def set(self, current: float) -> None:
"""SCPI: [SOURce]:CURRent[:LEVel][:IMMediate]:ALIMit:LOWer \n
Snippet: driver.source.current.level.immediate.alimit.lower.set(current = 1.0) \n
Sets or queries the lower safety limit for current. \n
:param current:
- numeric value: Numeric value for lower safety limit.
- MIN | MINimum: Min value for lower safety limit.
- MAX | MAXimum: Max value for lower safety limit."""
param = Conversions.decimal_value_to_str(current)
self._core.io.write(f'SOURce:CURRent:LEVel:IMMediate:ALIMit:LOWer {param}')
[docs] def get(self) -> float:
"""SCPI: [SOURce]:CURRent[:LEVel][:IMMediate]:ALIMit:LOWer \n
Snippet: value: float = driver.source.current.level.immediate.alimit.lower.get() \n
Sets or queries the lower safety limit for current. \n
:return: result: No help available"""
response = self._core.io.query_str(f'SOURce:CURRent:LEVel:IMMediate:ALIMit:LOWer?')
return Conversions.str_to_float(response)