from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EventCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("event", core, parent)
[docs]
def set(self, event: float) -> None:
"""
``[SENSe]:SWEep:EVENt`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.sweep.event.set(event = 1.0)`` \n
Defines the number of events in a combined measurement sequence.
"""
param = Conversions.decimal_value_to_str(event)
self._core.io.write(f'SENSe:SWEep:EVENt {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:SWEep:EVENt`` \n
Snippet: ``value: float = driver.applications.k14Xnr5G.sense.sweep.event.get()`` \n
Defines the number of events in a combined measurement sequence.
"""
response = self._core.io.query_str(f'SENSe:SWEep:EVENt?')
return Conversions.str_to_float(response)