def _get_error(self): # Does not use send() to be able to call _get_error in send(). _error_number = int(self.sock.write_readline("ERR?\n")) _error_str = pi_gcs.get_error_str(int(_error_number)) _error_str = pi_gcs.get_error_str(_error_number) return (_error_number, _error_str)
def _get_error(self, axis): """ Returns (err_number, error_string). returns (0, 'No Error') if no error. """ _error_number = int(self.send(axis, "%d ERR?" % axis.address).split(" ")[2]) _error_str = pi_gcs.get_error_str(_error_number) return ("ERR %d : %s" % (_error_number, _error_str))
def _get_error(self, axis): """ Returns (err_number, error_string). returns (0, 'No Error') if no error. """ _error_number = int( self.send(axis, "%d ERR?" % axis.address).split(" ")[2]) _error_str = pi_gcs.get_error_str(_error_number) return ("ERR %d : %s" % (_error_number, _error_str))
def get_error(self): _t0 = time.time() _error_number = self.sock.write_readline("ERR?\n") _duration = time.time() - _t0 #if _duration > 0.005: #print "%s Received %s from Send %s (duration : %g ms) " % \ #(self.cname, repr(_error_number), "ERR?", _duration * 1000) _error_str = pi_gcs.get_error_str(_error_number) return (_error_number, _error_str)
def _get_error(self): _error_number = self.sock.write_readline("ERR?\n") _error_str = pi_gcs.get_error_str(_error_number) return (_error_number, _error_str)
def get_error(self, axis): _error_number = self.send(axis, "ERR?") _error_str = pi_gcs.get_error_str(_error_number) return (_error_number, _error_str)
def _get_error(self): # Does not use send() to be able to call _get_error in send(). _error_number = int(self.raw_write_read("ERR?")) _error_str = pi_gcs.get_error_str(int(_error_number)) return (_error_number, _error_str)
def get_error(self): _error_number = int(self.sock.write_readline("ERR?\n")) _error_str = pi_gcs.get_error_str(_error_number) return (_error_number, _error_str)