tests/logging/py_ext_0@py_ext/py_ext.xml
changeset 1911 c1298e7ffe3a
parent 1910 a375e31bf312
parent 1639 1953c268a194
child 1912 8391c11477f4
child 2479 7f08b03a5d92
--- a/tests/logging/py_ext_0@py_ext/py_ext.xml	Sun Mar 05 00:38:25 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<Python xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="py_ext_xsd.xsd">
-<![CDATA[import threading, time
-
-MyT = None
-Stop = False
-
-def StartLog():
-    global MyT
-    MyT=threading.Thread(target = DoLog)
-    MyT.start()
-
-def DoLog():
-    global Stop
-    while not Stop:
-        PLCObject.LogMessage("Python side Logging (PLC is %s)"%PLCObject.PLCStatus)
-        time.sleep(0.3)
-
-def StopLog():
-    global MyT,Stop
-    Stop=True
-
-_runtime_init.append(StartLog)
-_runtime_cleanup.append(StopLog)
-]]>
-</Python>