[docs]classDataCls:"""Data commands group definition. 3 total commands, 2 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("data",core,parent)@propertydefdselect(self):"""dselect commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_dselect'):from.DselectimportDselectClsself._dselect=DselectCls(self._core,self._cmd_group)returnself._dselect@propertydefpattern(self):"""pattern commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_pattern'):from.PatternimportPatternClsself._pattern=PatternCls(self._core,self._cmd_group)returnself._pattern
[docs]defset(self,data:enums.TpcDataSour,mobileStation=repcap.MobileStation.Default)->None:"""SCPI: [SOURce<HW>]:BB:W3GPp:MSTation<ST>:DPCCh:TPC:DATA \n Snippet: driver.source.bb.w3Gpp.mstation.dpcch.tpc.data.set(data = enums.TpcDataSour.DLISt, mobileStation = repcap.MobileStation.Default) \n The command determines the data source for the TPC field of the DPCCH. \n :param data: DLISt| ZERO | ONE| PATTern| DLISt A data list is used. The data list is selected with the command [:SOURcehw]:BB:W3GPp:MSTationst:DPCCh:TPC:DATA:DSELect. ZERO | ONE Internal 0 and 1 data is used. PATTern Internal data is used. The bit pattern for the data is defined by the command [:SOURcehw]:BB:W3GPp:MSTationst:DPCCh:TPC:DATA:PATTern. The maximum length is 64 bits. :param mobileStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mstation') """param=Conversions.enum_scalar_to_str(data,enums.TpcDataSour)mobileStation_cmd_val=self._cmd_group.get_repcap_cmd_value(mobileStation,repcap.MobileStation)self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation{mobileStation_cmd_val}:DPCCh:TPC:DATA {param}')
# noinspection PyTypeChecker
[docs]defget(self,mobileStation=repcap.MobileStation.Default)->enums.TpcDataSour:"""SCPI: [SOURce<HW>]:BB:W3GPp:MSTation<ST>:DPCCh:TPC:DATA \n Snippet: value: enums.TpcDataSour = driver.source.bb.w3Gpp.mstation.dpcch.tpc.data.get(mobileStation = repcap.MobileStation.Default) \n The command determines the data source for the TPC field of the DPCCH. \n :param mobileStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Mstation') :return: data: DLISt| ZERO | ONE| PATTern| DLISt A data list is used. The data list is selected with the command [:SOURcehw]:BB:W3GPp:MSTationst:DPCCh:TPC:DATA:DSELect. ZERO | ONE Internal 0 and 1 data is used. PATTern Internal data is used. The bit pattern for the data is defined by the command [:SOURcehw]:BB:W3GPp:MSTationst:DPCCh:TPC:DATA:PATTern. The maximum length is 64 bits."""mobileStation_cmd_val=self._cmd_group.get_repcap_cmd_value(mobileStation,repcap.MobileStation)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:W3GPp:MSTation{mobileStation_cmd_val}:DPCCh:TPC:DATA?')returnConversions.str_to_scalar_enum(response,enums.TpcDataSour)
defclone(self)->'DataCls':"""Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group"""new_group=DataCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group