[docs]classErrorCls:"""Error commands group definition. 7 total commands, 2 Subgroups, 3 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("error",core,parent)@propertydefcode(self):"""code commands group. 0 Sub-classes, 2 commands."""ifnothasattr(self,'_code'):from.CodeimportCodeClsself._code=CodeCls(self._core,self._cmd_group)returnself._code@propertydefhistory(self):"""history commands group. 0 Sub-classes, 2 commands."""ifnothasattr(self,'_history'):from.HistoryimportHistoryClsself._history=HistoryCls(self._core,self._cmd_group)returnself._history
[docs]defget_all(self)->str:"""SCPI: SYSTem:ERRor:ALL \n Snippet: value: str = driver.system.error.get_all() \n Queries the error/event queue for all unread items and removes them from the queue. \n :return: all_py: string Error/event_number,'Error/event_description[;Device-dependent info]' A comma separated list of error number and a short description of the error in FIFO order. If the queue is empty, the response is 0,'No error' Positive error numbers are instrument-dependent. Negative error numbers are reserved by the SCPI standard. Volatile errors are reported once, at the time they appear. Identical errors are reported repeatedly only if the original error has already been retrieved from (and hence not any more present in) the error queue. """response=self._core.io.query_str('SYSTem:ERRor:ALL?')returntrim_str_response(response)
[docs]defget_count(self)->str:"""SCPI: SYSTem:ERRor:COUNt \n Snippet: value: str = driver.system.error.get_count() \n Queries the number of entries in the error queue. \n :return: count: integer 0 The error queue is empty. """response=self._core.io.query_str('SYSTem:ERRor:COUNt?')returntrim_str_response(response)
[docs]defget_static(self)->str:"""SCPI: SYSTem:ERRor:STATic \n Snippet: value: str = driver.system.error.get_static() \n Returns a list of all errors existing at the time when the query is started. This list corresponds to the display on the info page under manual control. \n :return: static_errors: string """response=self._core.io.query_str('SYSTem:ERRor:STATic?')returntrim_str_response(response)
defclone(self)->'ErrorCls':"""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=ErrorCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group