[docs]classScanCls:"""Scan commands group definition. 3 total commands, 1 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("scan",core,parent)@propertydefusensor(self):"""usensor commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_usensor'):from.UsensorimportUsensorClsself._usensor=UsensorCls(self._core,self._cmd_group)returnself._usensor
[docs]defset_lsensor(self,ip:str)->None:"""SCPI: SLISt:SCAN:LSENsor \n Snippet: driver.slist.scan.set_lsensor(ip = 'abc') \n Scans for R&S NRP power sensors connected in the LAN. \n :param ip: string """param=Conversions.value_to_quoted_str(ip)self._core.io.write(f'SLISt:SCAN:LSENsor {param}')
[docs]defget_state(self)->bool:"""SCPI: SLISt:SCAN:[STATe] \n Snippet: value: bool = driver.slist.scan.get_state() \n Starts the search for R&S NRP power sensors, connected in the LAN or via the USBTMC protocol. \n :return: state: 1| ON| 0| OFF """response=self._core.io.query_str('SLISt:SCAN:STATe?')returnConversions.str_to_bool(response)
[docs]defset_state(self,state:bool)->None:"""SCPI: SLISt:SCAN:[STATe] \n Snippet: driver.slist.scan.set_state(state = False) \n Starts the search for R&S NRP power sensors, connected in the LAN or via the USBTMC protocol. \n :param state: 1| ON| 0| OFF """param=Conversions.bool_to_str(state)self._core.io.write(f'SLISt:SCAN:STATe {param}')
defclone(self)->'ScanCls':"""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=ScanCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group