LPCconnector/LPCAppObject.py
changeset 47 f860aa7e90e5
parent 46 c6b7d4c176c2
child 49 f340728940f6
equal deleted inserted replaced
46:c6b7d4c176c2 47:f860aa7e90e5
   106             TraceVariables = UnpackDebugBuffer(buff, size,  self._Idxs)
   106             TraceVariables = UnpackDebugBuffer(buff, size,  self._Idxs)
   107             if TraceVariables is not None:
   107             if TraceVariables is not None:
   108                 return self.PLCStatus, tick.value, TraceVariables
   108                 return self.PLCStatus, tick.value, TraceVariables
   109         return self.PLCStatus, None, [] 
   109         return self.PLCStatus, None, [] 
   110 
   110 
       
   111     def ResetLogCount(self):
       
   112         self.HandleSerialTransaction(RESET_LOGCOUNTSTransaction())
       
   113 
   111     def GetLogMessage(self, level, msgid):
   114     def GetLogMessage(self, level, msgid):
   112         strbuf = self.HandleSerialTransaction(GET_LOGMSGTransaction(level, msgid))
   115         strbuf = self.HandleSerialTransaction(GET_LOGMSGTransaction(level, msgid))
   113         if strbuf is not None and len(strbuf) > 12:
   116         if strbuf is not None and len(strbuf) > 12:
   114             cbuf = ctypes.cast(
   117             cbuf = ctypes.cast(
   115                           ctypes.c_char_p(strbuf[:12]),
   118                           ctypes.c_char_p(strbuf[:12]),