This commit is contained in:
15
script/test/TestMonitorCallbackBug.py
Normal file
15
script/test/TestMonitorCallbackBug.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user