[docs]classDataCls:"""Data commands group definition. 4 total commands, 3 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@propertydefrate(self):"""rate commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_rate'):from.RateimportRateClsself._rate=RateCls(self._core,self._cmd_group)returnself._rate
[docs]defset(self,data:enums.DataSourceA,baseStation=repcap.BaseStation.Default,groupNull=repcap.GroupNull.Default,offset=repcap.Offset.Default)->None:"""SCPI: [SOURce<HW>]:BB:C2K:BSTation<ST>:CGRoup<DI0>:COFFset<CH>:DATA \n Snippet: driver.source.bb.c2K.bstation.cgroup.coffset.data.set(data = enums.DataSourceA.DLISt, baseStation = repcap.BaseStation.Default, groupNull = repcap.GroupNull.Default, offset = repcap.Offset.Default) \n The command selects the data source for the specified channel. For the traffic channels, this value is specific for the selected radio configuration. The data source for the power control bits is selected with the command BB:C2K:BST<n>:CGRoup<n>:COFFset<n>:TPC:DATA. \n :param data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt PNxx The pseudo-random sequence generator is used as the data source. Different random sequence lengths can be selected. DLISt A data list is used. The data list is selected with the command :BB:C2K:BSTn:CGRoupn:COFFsetn:DATA:DSEL. 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 :BB:C2K:BST:CGRoup:COFFset:DATA:PATT. :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param groupNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cgroup') :param offset: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Coffset') """param=Conversions.enum_scalar_to_str(data,enums.DataSourceA)baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)groupNull_cmd_val=self._cmd_group.get_repcap_cmd_value(groupNull,repcap.GroupNull)offset_cmd_val=self._cmd_group.get_repcap_cmd_value(offset,repcap.Offset)self._core.io.write(f'SOURce<HwInstance>:BB:C2K:BSTation{baseStation_cmd_val}:CGRoup{groupNull_cmd_val}:COFFset{offset_cmd_val}:DATA {param}')
# noinspection PyTypeChecker
[docs]defget(self,baseStation=repcap.BaseStation.Default,groupNull=repcap.GroupNull.Default,offset=repcap.Offset.Default)->enums.DataSourceA:"""SCPI: [SOURce<HW>]:BB:C2K:BSTation<ST>:CGRoup<DI0>:COFFset<CH>:DATA \n Snippet: value: enums.DataSourceA = driver.source.bb.c2K.bstation.cgroup.coffset.data.get(baseStation = repcap.BaseStation.Default, groupNull = repcap.GroupNull.Default, offset = repcap.Offset.Default) \n The command selects the data source for the specified channel. For the traffic channels, this value is specific for the selected radio configuration. The data source for the power control bits is selected with the command BB:C2K:BST<n>:CGRoup<n>:COFFset<n>:TPC:DATA. \n :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param groupNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cgroup') :param offset: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Coffset') :return: data: ZERO| ONE| PATTern| PN9| PN11| PN15| PN16| PN20| PN21| PN23| DLISt PNxx The pseudo-random sequence generator is used as the data source. Different random sequence lengths can be selected. DLISt A data list is used. The data list is selected with the command :BB:C2K:BSTn:CGRoupn:COFFsetn:DATA:DSEL. 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 :BB:C2K:BST:CGRoup:COFFset:DATA:PATT."""baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)groupNull_cmd_val=self._cmd_group.get_repcap_cmd_value(groupNull,repcap.GroupNull)offset_cmd_val=self._cmd_group.get_repcap_cmd_value(offset,repcap.Offset)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:C2K:BSTation{baseStation_cmd_val}:CGRoup{groupNull_cmd_val}:COFFset{offset_cmd_val}: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