Source code for RsFsw.Implementations.Status.Questionable.Lmargin.Ntransition

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class NtransitionCls: """Ntransition commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ntransition", core, parent)
[docs] def set(self, summary_bit: int, channel_name: str = None, window=repcap.Window.Default) -> None: """SCPI: STATus:QUEStionable:LMARgin<1|2|3|4>:NTRansition \n Snippet: driver.status.questionable.lmargin.ntransition.set(summary_bit = 1, channel_name = 'abc', window = repcap.Window.Default) \n These commands control the Negative TRansition part of a register. Setting a bit causes a 1 to 0 transition in the corresponding bit of the associated register. The transition also writes a 1 into the associated bit of the corresponding EVENt register. \n :param summary_bit: No help available :param channel_name: String containing the name of the channel. The parameter is optional. If you omit it, the command works for the currently active channel. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lmargin') """ param = ArgSingleList().compose_cmd_string(ArgSingle('summary_bit', summary_bit, DataType.Integer), ArgSingle('channel_name', channel_name, DataType.String, None, is_optional=True)) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'STATus:QUEStionable:LMARgin{window_cmd_val}:NTRansition {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class NtransitionStruct(StructBase): """Response structure. Fields: \n - Summary_Bit: int: No parameter help available - Channel_Name: str: String containing the name of the channel. The parameter is optional. If you omit it, the command works for the currently active channel.""" __meta_args_list = [ ArgStruct.scalar_int('Summary_Bit'), ArgStruct.scalar_str('Channel_Name')] def __init__(self): StructBase.__init__(self, self) self.Summary_Bit: int = None self.Channel_Name: str = None
[docs] def get(self, window=repcap.Window.Default) -> NtransitionStruct: """SCPI: STATus:QUEStionable:LMARgin<1|2|3|4>:NTRansition \n Snippet: value: NtransitionStruct = driver.status.questionable.lmargin.ntransition.get(window = repcap.Window.Default) \n These commands control the Negative TRansition part of a register. Setting a bit causes a 1 to 0 transition in the corresponding bit of the associated register. The transition also writes a 1 into the associated bit of the corresponding EVENt register. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lmargin') :return: structure: for return value, see the help for NtransitionStruct structure arguments.""" window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) return self._core.io.query_struct(f'STATus:QUEStionable:LMARgin{window_cmd_val}:NTRansition?', self.__class__.NtransitionStruct())