[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.DataSourceA,baseStation=repcap.BaseStation.Default,channelNull=repcap.ChannelNull.Default)->None:"""SCPI: [SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel<CH0>:HSDPa:HSET:DATA \n Snippet: driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.data.set(data = enums.DataSourceA.DLISt, baseStation = repcap.BaseStation.Default, channelNull = repcap.ChannelNull.Default) \n Selects the data source for the transport channel. \n :param data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt ZERO | ONE Internal 0 and 1 data is used. PATTern Internal data is used. Use the command [:SOURcehw]:BB:W3GPp:BSTationst:CHANnelch0:HSDPa:HSET:DATA:PATTern to set the pattern. DLISt A data list is used. Use the command [:SOURcehw]:BB:W3GPp:BSTationst:CHANnelch0:HSDPa:HSET:DATA:DSELect to select the data list file. :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param channelNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Channel') """param=Conversions.enum_scalar_to_str(data,enums.DataSourceA)baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)channelNull_cmd_val=self._cmd_group.get_repcap_cmd_value(channelNull,repcap.ChannelNull)self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel{channelNull_cmd_val}:HSDPa:HSET:DATA {param}')
# noinspection PyTypeChecker
[docs]defget(self,baseStation=repcap.BaseStation.Default,channelNull=repcap.ChannelNull.Default)->enums.DataSourceA:"""SCPI: [SOURce<HW>]:BB:W3GPp:BSTation<ST>:CHANnel<CH0>:HSDPa:HSET:DATA \n Snippet: value: enums.DataSourceA = driver.source.bb.w3Gpp.bstation.channel.hsdpa.hset.data.get(baseStation = repcap.BaseStation.Default, channelNull = repcap.ChannelNull.Default) \n Selects the data source for the transport channel. \n :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param channelNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Channel') :return: data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt ZERO | ONE Internal 0 and 1 data is used. PATTern Internal data is used. Use the command [:SOURcehw]:BB:W3GPp:BSTationst:CHANnelch0:HSDPa:HSET:DATA:PATTern to set the pattern. DLISt A data list is used. Use the command [:SOURcehw]:BB:W3GPp:BSTationst:CHANnelch0:HSDPa:HSET:DATA:DSELect to select the data list file."""baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)channelNull_cmd_val=self._cmd_group.get_repcap_cmd_value(channelNull,repcap.ChannelNull)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:W3GPp:BSTation{baseStation_cmd_val}:CHANnel{channelNull_cmd_val}:HSDPa:HSET:DATA?')returnConversions.str_to_scalar_enum(response,enums.DataSourceA)
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