@@ -0,0 +1,893 @@
+#!/usr/bin/env python%0A%0Afrom pcaspy import Driver, SimpleServer%0Aimport time%0A%0Aprefix = 'MTEST:'%0Apvdb = %7B%0A    'RAND' : %7B%0A        'prec' : 3,%0A        'count': 3,%0A    %7D,%0A%7D%0A%0Aimport threading%0Aimport numpy%0A%0Aclass myDriver(Driver):%0A    def  __init__(self):%0A        super(myDriver, self).__init__()%0A        self.value = numpy.array(%5B1,2,3%5D)%0A        tid = threading.Thread(target = self.do)%0A        tid.setDaemon(True)%0A        tid.start()%0A%0A    def read(self, reason):%0A        foo%0A        pass%0A%0A    def write(self, reason, value):%0A        pass%0A%0A    def do(self,):%0A        while True:%0A            self.value%5B1%5D += 1%0A            self.setParam('RAND', self.value)%0A            self.updatePVs()%0A            time.sleep(1)%0A%0Aif __name__ == '__main__':%0A    server = SimpleServer()%0A    server.createPV(prefix, pvdb)%0A    driver = myDriver()%0A%0A    # process CA transactions%0A    while True:%0A        server.process(0.1)%0A

test case for python exceptions in read/write method