diff -r 72a826dfcfbb -r 02fe382c4511 editors/DebugViewer.py --- a/editors/DebugViewer.py Wed Jul 31 10:45:07 2013 +0900 +++ b/editors/DebugViewer.py Mon Nov 18 12:12:31 2013 +0900 @@ -106,7 +106,7 @@ # Subscribe tick to new data producer if producer is not None: - producer.SubscribeDebugIECVariable("__tick__", self) + producer.SubscribeDebugIECVariable("__tick__", self, True) # Unsubscribe tick from old data producer if getattr(self, "DataProducer", None) is not None: @@ -134,7 +134,7 @@ # Save inhibit flag self.Inhibited = inhibit - def AddDataConsumer(self, iec_path, consumer): + def AddDataConsumer(self, iec_path, consumer, buffer_list=False): """ Subscribe data consumer to DataProducer @param iec_path: Path in PLC of variable needed by data consumer @@ -148,7 +148,7 @@ # Subscribe data consumer to DataProducer result = self.DataProducer.SubscribeDebugIECVariable( - iec_path, consumer) + iec_path, consumer, buffer_list) if result is not None and consumer != self: # Store data consumer if successfully subscribed and inform @@ -178,7 +178,7 @@ """ # Subscribe tick if needed if self.SubscribeTick and self.Debug and self.DataProducer is not None: - self.DataProducer.SubscribeDebugIECVariable("__tick__", self) + self.DataProducer.SubscribeDebugIECVariable("__tick__", self, True) def UnsubscribeAllDataConsumers(self, tick=True): """ @@ -214,7 +214,7 @@ # Search for variable informations in project data infos = self.DataProducer.GetInstanceInfos(iec_path) if infos is not None: - return infos["type"] + return infos.type return None @@ -246,7 +246,7 @@ if self.DataProducer is not None: self.DataProducer.ReleaseDebugIECVariable(iec_path) - def NewDataAvailable(self, tick, *args, **kwargs): + def NewDataAvailable(self, ticks, *args, **kwargs): """ Called by DataProducer for each tick captured @param tick: PLC tick captured