[docs]classUndoCls:"""Undo commands group definition. 5 total commands, 3 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("undo",core,parent)@propertydefhclear(self):"""hclear commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_hclear'):from.HclearimportHclearClsself._hclear=HclearCls(self._core,self._cmd_group)returnself._hclear@propertydefhid(self):"""hid commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_hid'):from.HidimportHidClsself._hid=HidCls(self._core,self._cmd_group)returnself._hid@propertydefhlable(self):"""hlable commands group. 0 Sub-classes, 2 commands."""ifnothasattr(self,'_hlable'):from.HlableimportHlableClsself._hlable=HlableCls(self._core,self._cmd_group)returnself._hlable
[docs]defget_state(self)->bool:"""SCPI: SYSTem:UNDO:STATe \n Snippet: value: bool = driver.system.undo.get_state() \n No command help available \n :return: state: No help available """response=self._core.io.query_str('SYSTem:UNDO:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: SYSTem:UNDO:STATe \n Snippet: driver.system.undo.set_state(state = False) \n No command help available \n :param state: No help available """param=Conversions.bool_to_str(state)self._core.io.write(f'SYSTem:UNDO:STATe {param}')
defclone(self)->'UndoCls':"""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=UndoCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group