from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MtimeCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mtime", core, parent)
[docs]
def set(self, meas_time: float) -> None:
"""
``[SENSe]:MTIMe`` \n
Snippet: ``driver.applications.k60Transient.sense.mtime.set(meas_time = 1.0)`` \n
Defines the time data is captured. Note that the record length and the measurement time are interdependent (see method
``RsFsw.sense.rlength.get()`` ) .
:param meas_time: Range: 18.75 us to 1.298 ms, Unit: S
"""
param = Conversions.decimal_value_to_str(meas_time)
self._core.io.write(f'SENSe:MTIMe {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:MTIMe`` \n
Snippet: ``value: float = driver.applications.k60Transient.sense.mtime.get()`` \n
Defines the time data is captured. Note that the record length and the measurement time are interdependent (see method
``RsFsw.sense.rlength.get()`` ) .
:return: meas_time: Range: 18.75 us to 1.298 ms, Unit: S
"""
response = self._core.io.query_str(f'SENSe:MTIMe?')
return Conversions.str_to_float(response)