16 lines
363 B
Python
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")
|