Script execution
This commit is contained in:
@@ -245,17 +245,15 @@ class ImageReader(ReadonlyRegisterBase, ReadonlyRegisterMatrix):
|
||||
ny = Scienta.slices.read()
|
||||
return ny
|
||||
|
||||
class SimpleDeviceReader(ReadonlyRegisterBase):
|
||||
class SimpleDeviceReader(Readable):
|
||||
"""
|
||||
pseudo-device class to read out another device once per region.
|
||||
|
||||
the device must be set assigned to the device attribute.
|
||||
the device must be set assigned to the source attribute.
|
||||
"""
|
||||
def read(self):
|
||||
print("simple device read")
|
||||
v = self.source.read()
|
||||
print(v)
|
||||
return v
|
||||
return self.source.read()
|
||||
|
||||
|
||||
def setup_live_plots(regions):
|
||||
global live_plots
|
||||
@@ -320,8 +318,6 @@ def do_scan(scan, motors, positions, regions, latency):
|
||||
set_device_alias(dev, reader.region_name + "/RefCurrent")
|
||||
SENSORS.append(dev)
|
||||
|
||||
#SENSORS.append(SampleCurrent)
|
||||
#SENSORS.append(RefCurrent)
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user