| | 1 | def updateNeutronCounts(self): |
| | 2 | ip="10.1.53.240" |
| | 3 | #ip="127.0.0.1" |
| | 4 | port=9000 |
| | 5 | try: |
| | 6 | print " NEON Starting..." |
| | 7 | r = redis.Redis(host=ip, port=port, db=0) |
| | 8 | except: |
| | 9 | print "ERROR: Neon server not available.\n" |
| | 10 | sys.exit() |
| | 11 | |
| | 12 | neonpathx="/GPPD/workspace/data/bank01/fit/axis_x" |
| | 13 | neonpathy="/GPPD/workspace/data/bank01/fit/axis_y" |
| | 14 | neonpathz="/GPPD/workspace/data/bank01/fit/value_1" |
| | 15 | neonpathc="/GPPD/workspace/data/bank01/event" |
| | 16 | |
| | 17 | datasetThread = neonReceiver.dataGet(1,r, 2, neonpathx, neonpathy, neonpathz, neonpathc, self.getCountsText(), self.getImageCanvas()) |
| | 18 | datasetThread.setDaemon(True) |
| | 19 | datasetThread.start() |
| | 20 | time.sleep(0.01) |