Source code for RsNgx.Implementations.Arbitrary.Sequence.Behavior

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class BehaviorCls: """Behavior commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("behavior", core, parent) # noinspection PyTypeChecker
[docs] def get_end(self) -> enums.ArbEndBehavior: """SCPI: ARBitrary:SEQuence:BEHavior:END \n Snippet: value: enums.ArbEndBehavior = driver.arbitrary.sequence.behavior.get_end() \n Sets or queries the arbitrary endpoint behavior, when QuickArb function is finished. \n :return: arg_0: No help available """ response = self._core.io.query_str('ARBitrary:SEQuence:BEHavior:END?') return Conversions.str_to_scalar_enum(response, enums.ArbEndBehavior)
[docs] def set_end(self, arg_0: enums.ArbEndBehavior) -> None: """SCPI: ARBitrary:SEQuence:BEHavior:END \n Snippet: driver.arbitrary.sequence.behavior.set_end(arg_0 = enums.ArbEndBehavior.HOLD) \n Sets or queries the arbitrary endpoint behavior, when QuickArb function is finished. \n :param arg_0: - OFF: If the QuickArb function is finished, the respective channel is deactivated automatically. - HOLD: If the QuickArb function is finished, the last arbitrary point of the user-defined arbitrary list is held.""" param = Conversions.enum_scalar_to_str(arg_0, enums.ArbEndBehavior) self._core.io.write(f'ARBitrary:SEQuence:BEHavior:END {param}')