from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StatusCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("status", core, parent)
[docs]
def get(self, status: bool) -> bool:
"""
``[SOURce<HW>]:REGenerator:SIMulation:LEVel:UPDated:[STATus]`` \n
Snippet: ``value: bool = driver.source.regenerator.simulation.level.updated.status.get(status = False)`` \n
Queries whether the current output level at the dedicated connector is equal to the calculated level.
To query the calculated level, use the command method ``RsSmw.source.regenerator.simulation.level.get()`` .
:param status: 1 | ON | 0| OFF
:return: status: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(status)
response = self._core.io.query_str(f'SOURce<HwInstance>:REGenerator:SIMulation:LEVel:UPDated:STATus? {param}')
return Conversions.str_to_bool(response)