connectors/LPC/LPCAppObject.py
changeset 578 6f5795bdee49
parent 577 04baf6607a44
child 592 c6408f92da0a
equal deleted inserted replaced
577:04baf6607a44 578:6f5795bdee49
   104                                  pack_func(c_type,force)),
   104                                  pack_func(c_type,force)),
   105                                  forced_type_size)
   105                                  forced_type_size)
   106                     buff += idxstr + forced_type_size_str + forcestr
   106                     buff += idxstr + forced_type_size_str + forcestr
   107                 else:
   107                 else:
   108                     buff += idxstr + chr(0)
   108                     buff += idxstr + chr(0)
   109             data = self.HandleSerialTransaction(
       
   110                    SET_TRACE_VARIABLETransaction(buff))
       
   111         else:
   109         else:
       
   110             buff = ""
   112             self._Idxs =  []
   111             self._Idxs =  []
       
   112 
       
   113         self.HandleSerialTransaction(SET_TRACE_VARIABLETransaction(buff))
   113 
   114 
   114     def GetTraceVariables(self):
   115     def GetTraceVariables(self):
   115         """
   116         """
   116         Return a list of variables, corresponding to the list of required idx
   117         Return a list of variables, corresponding to the list of required idx
   117         """
   118         """
   141                         #PLCprint("Debug error - buffer too small !")
   142                         #PLCprint("Debug error - buffer too small !")
   142                     break
   143                     break
   143             if offset and offset == size:
   144             if offset and offset == size:
   144                 return self.PLCStatus, tick.value, res
   145                 return self.PLCStatus, tick.value, res
   145             #PLCprint("Debug error - wrong buffer unpack !")
   146             #PLCprint("Debug error - wrong buffer unpack !")
   146         return self.PLCStatus, None, None
   147         return self.PLCStatus, None, [] 
   147 
   148