controls/DebugVariablePanel/DebugVariableViewer.py
branchpython3
changeset 3764 d92c1a3dafa7
parent 3750 f62625418bff
child 3765 88fe6fc9fd38
equal deleted inserted replaced
3763:369c7569bf94 3764:d92c1a3dafa7
   148     def SubscribeAllDataConsumers(self):
   148     def SubscribeAllDataConsumers(self):
   149         """
   149         """
   150         Function that unsubscribe and remove every item that store values of
   150         Function that unsubscribe and remove every item that store values of
   151         a variable that doesn't exist in PLC anymore
   151         a variable that doesn't exist in PLC anymore
   152         """
   152         """
   153         for item in list(self.ItemsDict.values())[:]:
   153         for item in self.ItemsDict.values():
   154             iec_path = item.GetVariable()
   154             iec_path = item.GetVariable()
   155 
   155 
   156             # Check that variablepath exist in PLC
   156             # Check that variablepath exist in PLC
   157             if self.ParentWindow.GetDataType(iec_path) is None:
   157             if self.ParentWindow.GetDataType(iec_path) is None:
   158                 # If not, unsubscribe and remove it
   158                 # If not, unsubscribe and remove it