Closedown
This commit is contained in:
@@ -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
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user