graphics/DebugDataConsumer.py
branch1.1 Korean release
changeset 1384 02fe382c4511
parent 1365 debc97102b23
child 1571 486f94a8032c
--- a/graphics/DebugDataConsumer.py	Wed Jul 31 10:45:07 2013 +0900
+++ b/graphics/DebugDataConsumer.py	Mon Nov 18 12:12:31 2013 +0900
@@ -197,7 +197,7 @@
         """
         self.DataType = data_type
     
-    def NewValue(self, tick, value, forced=False, raw="BOOL"):
+    def NewValues(self, tick, values, 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')
         """
+        value, forced = values
+        
         # Translate value to IEC literal
         if self.DataType != raw:
             value = TYPE_TRANSLATOR.get(self.DataType, str)(value)