Source code for RsSmw.Implementations.Source.Bb.Kuiper.Trigger.Output.Pattern

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PatternCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("pattern", core, parent)

	# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """ Response structure. Fields: \n - 1 Pattern: str: numeric #Bbits Bits in binary representation #Hbits Bits in hexadecimal representation - 2 Bitcount: int: integer Number of bits Range: 1 to 64 """ __meta_args_list = [ ArgStruct.scalar_raw_str('Pattern'), ArgStruct.scalar_int('Bitcount')] def __init__(self): StructBase.__init__(self, self) self.Pattern: str = None self.Bitcount: int = None
[docs] def get(self, output=repcap.Output.Default) -> GetStruct: """ ``[SOURce<HW>]:BB:KUIPer:TRIGger:OUTPut<CH>:PATTern`` \n Snippet: ``value: GetStruct = driver.source.bb.kuiper.trigger.output.pattern.get(output = repcap.Output.Default)`` \n Sets the bit pattern to generate the marker signal. :param output: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') :return: structure: for return value, see the help for GetStruct structure arguments. """ output_cmd_val = self._cmd_group.get_repcap_cmd_value(output, repcap.Output) return self._core.io.query_struct(f'SOURce<HwInstance>:BB:KUIPer:TRIGger:OUTPut{output_cmd_val}:PATTern?', self.__class__.GetStruct())