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