equal
deleted
inserted
replaced
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 |