Script execution

This commit is contained in:
sfop
2017-03-09 14:06:10 +01:00
parent 37f1221216
commit 49af3065b6

View File

@@ -26,9 +26,9 @@ phase.config.maxValue = 360.0
phase.config.resolution = 0.5
phase.initialize()
camtool = Camtool("sflca","10000")
#camtool.stop()
camtool.start()
#my_camtool = Camtool("localhost:10000")
camtool.stop()
camtool.start("simulation")
#x = Channel("SINEG01-DSCR190:X-SIM", type = 'd', alias='SCR-X')
#dx = Channel("SINEG01-DSCR190:DX-SIM", type = 'd', alias='SCR-DX')
@@ -44,7 +44,7 @@ try:
dE = [val.mean/1000.0/disp*energy0 for val in r.getReadable(1)]
finally:
phase.close()
camtool.close()
#my_camtool.close()
p = plot(None, title="Output")[0]
p.clear()