Files
dev/script/test/TestMonitorCallbackBug.py
2018-04-17 12:05:48 +02:00

16 lines
363 B
Python

class Listener (DeviceListener):
def onValueChanged(self, device, value, former):
sin.removeListener(self)
print "--"
try:
print out.read()
print "Ok"
except:
print sys.exc_info()[1]
out.setTrustedMonitor(False)
sin.addListener(Listener())
c = create_channel("TESTIOC:TESTCALCOUT:Input")