Script execution

This commit is contained in:
x03daop
2017-04-07 15:11:32 +02:00
parent 805dd2322b
commit d040ecaabd

View File

@@ -27,7 +27,10 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
self.setup()
trig_scienta()
time.sleep(0.5)
return Scienta.getSpectrum().read()
sp = Scienta.getSpectrum().read()
nx = len(sp)
print "w = ", nx
return sp
def getSize(self):
print "SpectrumReader.getSize"
@@ -41,7 +44,9 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
class ImageReader(ReadonlyRegisterBase, ReadonlyRegisterMatrix):
def read(self):
print "ImageReader.read"
print str(self.region)
nx = Scienta.getDataMatrix().getWidth()
ny = Scienta.getDataMatrix().getHeight()
print "w, h = ", nx, ny
return Scienta.getDataMatrix().read()
def getWidth(self):