Script execution

This commit is contained in:
gac-S_Changer
2017-05-18 14:53:04 +02:00
parent ca8f6ac66c
commit 8c109a8fb4

View File

@@ -1,7 +1,8 @@
import ch.psi.pshell.imaging.Data as Data
class Exposure(Writable):
def write(self,pos):
cam.setExposure(pos)
#cam.setExposure(pos)
img.camera.setExposure(pos)
exposure=Exposure()
@@ -14,7 +15,8 @@ contrast=Contrast()
#a= lscan(exposure,img.getContrast(), 0.5, 1.0, 0.01, 0.5)
a= lscan(exposure,contrast, 0.2, 0.4, 0.01, 0.7)
#a= lscan(exposure,contrast, 0.2, 0.4, 0.01, 0.7)
a= lscan(exposure,contrast, 10.0, 500.0, 10.0, 0.7)
(n, m, s) = fit(a.getReadable(0), xdata=a.getPositions(0))
if m is not None: