from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UdtCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("udt", core, parent)
[docs]
def get_cycle(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UDT:CYCLe`` \n
Snippet: ``value: int = driver.source.bb.v5G.udt.get_cycle()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UDT:CYCLe?')
return Conversions.str_to_int(response)
[docs]
def set_cycle(self, cycle: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UDT:CYCLe`` \n
Snippet: ``driver.source.bb.v5G.udt.set_cycle(cycle = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(cycle)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UDT:CYCLe {param}')
[docs]
def get_on_duration(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UDT:ONDuration`` \n
Snippet: ``value: int = driver.source.bb.v5G.udt.get_on_duration()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UDT:ONDuration?')
return Conversions.str_to_int(response)
[docs]
def set_on_duration(self, on_duration: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UDT:ONDuration`` \n
Snippet: ``driver.source.bb.v5G.udt.set_on_duration(on_duration = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(on_duration)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UDT:ONDuration {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UDT:STATe`` \n
Snippet: ``value: bool = driver.source.bb.v5G.udt.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UDT:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, test_state: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UDT:STATe`` \n
Snippet: ``driver.source.bb.v5G.udt.set_state(test_state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(test_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UDT:STATe {param}')