[docs]classTableCls:"""Table commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("table",core,parent)@propertydefitem(self):"""item commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_item'):from.ItemimportItemClsself._item=ItemCls(self._core,self._cmd_group)returnself._item
[docs]defset(self,state:bool,window=repcap.Window.Default)->None:"""SCPI: DISPlay[:WINDow<n>]:TABLe \n Snippet: driver.applications.k91Wlan.display.window.table.set(state = False, window = repcap.Window.Default) \n Displays or removes the 'Result Summary' Global window. \n :param state: ON | OFF | 0 | 1 OFF | 0 Removes the 'Result Summary' Global window ON | 1 Displays the 'Result Summary' Global window :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') """param=Conversions.bool_to_str(state)window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:TABLe {param}')
[docs]defget(self,window=repcap.Window.Default)->bool:"""SCPI: DISPlay[:WINDow<n>]:TABLe \n Snippet: value: bool = driver.applications.k91Wlan.display.window.table.get(window = repcap.Window.Default) \n Displays or removes the 'Result Summary' Global window. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :return: state: ON | OFF | 0 | 1 OFF | 0 Removes the 'Result Summary' Global window ON | 1 Displays the 'Result Summary' Global window"""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)response=self._core.io.query_str(f'DISPlay:WINDow{window_cmd_val}:TABLe?')returnConversions.str_to_bool(response)
defclone(self)->'TableCls':"""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=TableCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group