Closedown

This commit is contained in:
sfop
2017-02-14 15:41:12 +01:00
parent dce8a028b0
commit 1a263f2c5f
2 changed files with 10 additions and 19 deletions
+2 -10
View File
@@ -27,18 +27,10 @@ phase.initialize()
camtool.stop()
camtool.start("simulation")
class FitMean(Readable):
def read(self):
return camtool.getValue("gr_x_fit_mean")
class FitStdev(Readable):
def read(self):
return camtool.getValue("gr_x_fit_standard_deviation")
#x = Channel("SINEG01-DSCR190:X-SIM", type = 'd', alias='SCR-X')
#dx = Channel("SINEG01-DSCR190:DX-SIM", type = 'd', alias='SCR-DX')
x = FitMean()
dx = FitStdev()
x = CamtoolValue("gr_x_fit_mean")
dx = CamtoolValue("gr_x_fit_standard_deviation")
try:
xb = create_averager(x, nb, 0.100)
+8 -9
View File
@@ -183,15 +183,14 @@ add_device(Sinusoid("center_y"), True)
center_x.setPolling(100)
center_y.setPolling(100)
"""
if not get_context().isLocalMode():
try:
run("camtool")
add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = True, camera = "SINEG01-DSCR190", gauss = False), True)
except:
pass
"""
#Camtool "child" pseudo-devices
class CamtoolValue(Readable):
def __init__(self, channel):
self.channel=channel
def read(self):
return camtool.getValue(self.channel)
#Convex hull plots
def clear_convex_hull_plot(title):