from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AutoCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("auto", core, parent)
[docs]
def set(self, measIndex=repcap.MeasIndex.Default) -> None:
"""
``MEASurement<*>:TRACk:AUTO`` \n
Snippet: ``driver.measurement.track.auto.set(measIndex = repcap.MeasIndex.Default)`` \n
Sets the vertical scale and the offset of the track, so that the complete height of the diagram is used.
:param measIndex: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement')
"""
measIndex_cmd_val = self._cmd_group.get_repcap_cmd_value(measIndex, repcap.MeasIndex)
self._core.io.write(f'MEASurement{measIndex_cmd_val}:TRACk:AUTO')
[docs]
def set_and_wait(self, measIndex=repcap.MeasIndex.Default, opc_timeout_ms: int = -1) -> None:
measIndex_cmd_val = self._cmd_group.get_repcap_cmd_value(measIndex, repcap.MeasIndex)
"""
``MEASurement<*>:TRACk:AUTO`` \n
Snippet: ``driver.measurement.track.auto.set_and_wait(measIndex = repcap.MeasIndex.Default)`` \n
Sets the vertical scale and the offset of the track, so that the complete height of the diagram is used.
Same as set, but waits for the operation to complete before continuing further. Use the RsMxo.utilities.opc_timeout_set() to set the timeout value.
:param measIndex: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Measurement')
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'MEASurement{measIndex_cmd_val}:TRACk:AUTO', opc_timeout_ms)