graphics/DebugDataConsumer.py
changeset 1363 e87e0166d0a7
parent 1220 16c283246241
child 1365 debc97102b23
--- a/graphics/DebugDataConsumer.py	Sat Oct 12 10:10:30 2013 +0900
+++ b/graphics/DebugDataConsumer.py	Mon Oct 14 10:31:32 2013 +0200
@@ -197,7 +197,7 @@
         """
         self.DataType = data_type
     
-    def NewValue(self, tick, value, forced=False, raw="BOOL"):
+    def NewValues(self, ticks, values, forced=False, raw="BOOL"):
         """
         Function called by debug thread when a new debug value is available
         @param tick: PLC tick when value was captured
@@ -205,6 +205,8 @@
         @param forced: Forced flag, True if value is forced (default: False)
         @param raw: Data type of values not translated (default: 'BOOL')
         """
+        tick, value = ticks[-1], values[-1]
+        
         # Translate value to IEC literal
         if self.DataType != raw:
             value = TYPE_TRANSLATOR.get(self.DataType, str)(value)