[docs]classNameCls:"""Name commands group definition. 12 total commands, 1 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("name",core,parent)@propertydefauto(self):"""auto commands group. 2 Sub-classes, 2 commands."""ifnothasattr(self,'_auto'):from.AutoimportAutoClsself._auto=AutoCls(self._core,self._cmd_group)returnself._auto
[docs]defget_value(self)->str:"""SCPI: HCOPy:FILE:[NAME] \n Snippet: value: str = driver.hardCopy.file.name.get_value() \n Determines the file name and path to save the hard copy, provided automatic naming is disabled. Note: If you have enabled automatic naming, the instrument automatically generates the file name and directory, see 'Automatic naming'. \n :return: name: string """response=self._core.io.query_str('HCOPy:FILE:NAME?')returntrim_str_response(response)
[docs]defset_value(self,name:str)->None:"""SCPI: HCOPy:FILE:[NAME] \n Snippet: driver.hardCopy.file.name.set_value(name = 'abc') \n Determines the file name and path to save the hard copy, provided automatic naming is disabled. Note: If you have enabled automatic naming, the instrument automatically generates the file name and directory, see 'Automatic naming'. \n :param name: string """param=Conversions.value_to_quoted_str(name)self._core.io.write(f'HCOPy:FILE:NAME {param}')
defclone(self)->'NameCls':"""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=NameCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group