equal
deleted
inserted
replaced
184 """ |
184 """ |
185 Called to Unsubscribe all data consumers. |
185 Called to Unsubscribe all data consumers. |
186 """ |
186 """ |
187 if self.DataProducer is not None: |
187 if self.DataProducer is not None: |
188 |
188 |
|
189 # Unscribe tick if needed |
|
190 if self.SubscribeTick and tick and self.Debug: |
|
191 self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) |
|
192 |
189 # Unsubscribe all data consumers in list |
193 # Unsubscribe all data consumers in list |
190 for consumer, iec_path in self.DataConsumers.iteritems(): |
194 for consumer, iec_path in self.DataConsumers.iteritems(): |
191 self.DataProducer.UnsubscribeDebugIECVariable( |
195 self.DataProducer.UnsubscribeDebugIECVariable( |
192 iec_path, consumer) |
196 iec_path, consumer) |
193 |
|
194 # Unscribe tick if needed |
|
195 if self.SubscribeTick and tick and self.Debug: |
|
196 self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) |
|
197 |
197 |
198 self.DataConsumers = {} |
198 self.DataConsumers = {} |
199 |
199 |
200 def GetDataType(self, iec_path): |
200 def GetDataType(self, iec_path): |
201 """ |
201 """ |