1594 IECPathsToPop.append(IECPath) |
1594 IECPathsToPop.append(IECPath) |
1595 elif IECPath != "__tick__": |
1595 elif IECPath != "__tick__": |
1596 # Convert |
1596 # Convert |
1597 Idx, IEC_Type = self._IECPathToIdx.get(IECPath,(None,None)) |
1597 Idx, IEC_Type = self._IECPathToIdx.get(IECPath,(None,None)) |
1598 if Idx is not None: |
1598 if Idx is not None: |
1599 Idxs.append((Idx, IEC_Type, IECPath, fvalue)) |
1599 Idxs.append((Idx, IEC_Type, fvalue, IECPath)) |
1600 else: |
1600 else: |
1601 self.logger.write_warning(_("Debug : Unknown variable %s\n")%IECPath) |
1601 self.logger.write_warning(_("Debug : Unknown variable %s\n")%IECPath) |
1602 for IECPathToPop in IECPathsToPop: |
1602 for IECPathToPop in IECPathsToPop: |
1603 self.IECdebug_datas.pop(IECPathToPop) |
1603 self.IECdebug_datas.pop(IECPathToPop) |
1604 |
1604 |
1605 if Idxs: |
1605 if Idxs: |
1606 Idxs.sort() |
1606 Idxs.sort() |
1607 self.TracedIECPath = zip(*Idxs)[2] |
1607 self.TracedIECPath = zip(*Idxs)[3] |
1608 self._connector.SetTraceVariablesList(zip(*zip(*Idxs)[0:3])) |
1608 self._connector.SetTraceVariablesList(zip(*zip(*Idxs)[0:3])) |
1609 else: |
1609 else: |
1610 self.TracedIECPath = [] |
1610 self.TracedIECPath = [] |
1611 self._connector.SetTraceVariablesList([]) |
1611 self._connector.SetTraceVariablesList([]) |
1612 self.IECdebug_lock.release() |
1612 self.IECdebug_lock.release() |