from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PulmCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pulm", core, parent)
[docs]
def get_level(self) -> float:
"""
``[SOURce]:INPut:USER:PULM:LEVel`` \n
Snippet: ``value: float = driver.source.inputPy.user.pulm.get_level()`` \n
Sets the threshold for any input signal at the USER4 to USER6 connectors.
:return: level: float Range: 0.1 to 2, Unit: V
"""
response = self._core.io.query_str('SOURce:INPut:USER:PULM:LEVel?')
return Conversions.str_to_float(response)
[docs]
def set_level(self, level: float) -> None:
"""
``[SOURce]:INPut:USER:PULM:LEVel`` \n
Snippet: ``driver.source.inputPy.user.pulm.set_level(level = 1.0)`` \n
Sets the threshold for any input signal at the USER4 to USER6 connectors.
:param level: float Range: 0.1 to 2, Unit: V
"""
param = Conversions.decimal_value_to_str(level)
self._core.io.write(f'SOURce:INPut:USER:PULM:LEVel {param}')