[docs]classPtransitionCls:"""Ptransition commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("ptransition",core,parent)
[docs]defset(self,bit_definition:int,channel_name:str=None,window=repcap.Window.Default)->None:"""SCPI: STATus:QUEStionable:MODulation<1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16>:PHASe:PTRansition \n Snippet: driver.applications.k70Vsa.status.questionable.modulation.phase.ptransition.set(bit_definition = 1, channel_name = 'abc', window = repcap.Window.Default) \n These commands control the Positive TRansition part of a register. Setting a bit causes a 0 to 1 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 bit_definition: Range: 0 to 65535 :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 'Modulation') """param=ArgSingleList().compose_cmd_string(ArgSingle('bit_definition',bit_definition,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:MODulation{window_cmd_val}:PHASe:PTRansition {param}'.rstrip())
# noinspection PyTypeChecker
[docs]classPtransitionStruct(StructBase):"""Response structure. Fields: \n - Bit_Definition: int: Range: 0 to 65535 - 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('Bit_Definition'),ArgStruct.scalar_str('Channel_Name')]def__init__(self):StructBase.__init__(self,self)self.Bit_Definition:int=Noneself.Channel_Name:str=None
[docs]defget(self,window=repcap.Window.Default)->PtransitionStruct:"""SCPI: STATus:QUEStionable:MODulation<1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16>:PHASe:PTRansition \n Snippet: value: PtransitionStruct = driver.applications.k70Vsa.status.questionable.modulation.phase.ptransition.get(window = repcap.Window.Default) \n These commands control the Positive TRansition part of a register. Setting a bit causes a 0 to 1 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 'Modulation') :return: structure: for return value, see the help for PtransitionStruct structure arguments."""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)returnself._core.io.query_struct(f'STATus:QUEStionable:MODulation{window_cmd_val}:PHASe:PTRansition?',self.__class__.PtransitionStruct())