[docs]classCopyCls:"""Copy commands group definition. 3 total commands, 1 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("copy",core,parent)@propertydefexecute(self):"""execute commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_execute'):from.ExecuteimportExecuteClsself._execute=ExecuteCls(self._core,self._cmd_group)returnself._execute# noinspection PyTypeChecker
[docs]defget_destination(self)->enums.NumberA:"""SCPI: [SOURce<HW>]:BB:TDSCdma:COPY:DESTination \n Snippet: value: enums.NumberA = driver.source.bb.tdscdma.copy.get_destination() \n Selects the cell whose settings are to be overwritten. \n :return: destination: 1| 2| 3| 4 Range: 1 to 4 """response=self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:COPY:DESTination?')returnConversions.str_to_scalar_enum(response,enums.NumberA)
[docs]defset_destination(self,destination:enums.NumberA)->None:"""SCPI: [SOURce<HW>]:BB:TDSCdma:COPY:DESTination \n Snippet: driver.source.bb.tdscdma.copy.set_destination(destination = enums.NumberA._1) \n Selects the cell whose settings are to be overwritten. \n :param destination: 1| 2| 3| 4 Range: 1 to 4 """param=Conversions.enum_scalar_to_str(destination,enums.NumberA)self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:COPY:DESTination {param}')
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.NumberA:"""SCPI: [SOURce<HW>]:BB:TDSCdma:COPY:SOURce \n Snippet: value: enums.NumberA = driver.source.bb.tdscdma.copy.get_source() \n Selects the cell whose settings are to be copied. \n :return: source: 1| 2| 3| 4 Range: 1 to 4 """response=self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:COPY:SOURce?')returnConversions.str_to_scalar_enum(response,enums.NumberA)
[docs]defset_source(self,source:enums.NumberA)->None:"""SCPI: [SOURce<HW>]:BB:TDSCdma:COPY:SOURce \n Snippet: driver.source.bb.tdscdma.copy.set_source(source = enums.NumberA._1) \n Selects the cell whose settings are to be copied. \n :param source: 1| 2| 3| 4 Range: 1 to 4 """param=Conversions.enum_scalar_to_str(source,enums.NumberA)self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:COPY:SOURce {param}')
defclone(self)->'CopyCls':"""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=CopyCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group