[docs]classPatternCls:"""Pattern commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("pattern",core,parent)
[docs]defset(self,pattern:str,bitcount:int,subframeNull=repcap.SubframeNull.Default,allocationNull=repcap.AllocationNull.Default,codeword=repcap.Codeword.Default)->None:"""SCPI: [SOURce<HW>]:BB:ONEWeb:DL:[SUBF<ST0>]:ALLoc<CH0>:[CW<USER>]:PATTern \n Snippet: driver.source.bb.oneweb.downlink.subf.alloc.cw.pattern.set(pattern = rawAbc, bitcount = 1, subframeNull = repcap.SubframeNull.Default, allocationNull = repcap.AllocationNull.Default, codeword = repcap.Codeword.Default) \n Sets a bit pattern as data source. \n :param pattern: numeric :param bitcount: integer Range: 1 to 64 :param subframeNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Subf') :param allocationNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Alloc') :param codeword: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cw') """param=ArgSingleList().compose_cmd_string(ArgSingle('pattern',pattern,DataType.RawString),ArgSingle('bitcount',bitcount,DataType.Integer))subframeNull_cmd_val=self._cmd_group.get_repcap_cmd_value(subframeNull,repcap.SubframeNull)allocationNull_cmd_val=self._cmd_group.get_repcap_cmd_value(allocationNull,repcap.AllocationNull)codeword_cmd_val=self._cmd_group.get_repcap_cmd_value(codeword,repcap.Codeword)self._core.io.write(f'SOURce<HwInstance>:BB:ONEWeb:DL:SUBF{subframeNull_cmd_val}:ALLoc{allocationNull_cmd_val}:CW{codeword_cmd_val}:PATTern {param}'.rstrip())