camtool.start("simulation")
time.sleep(1.0)
d = camtool.stream.getChild("x_fit_mean")
a = create_averager(d, 5, -1)
a.monitored = True
m=camtool.getDataMatrix()



tscan ((d,a, a.samples,m), 10, 0.5)

camtool.stop()