Script execution
This commit is contained in:
1 parent
5df4222f91
commit
3053b58359
1 file changed
+4
-8
@@ -7,12 +7,8 @@ set_adc_averaging()
|
||||
|
||||
set_context(name = "test")
|
||||
|
||||
class PseudoDevice(RegisterBase):
|
||||
def doRead(self):
|
||||
#return take()
|
||||
return Scienta.getCenterEnergy().read()
|
||||
|
||||
def doWrite(self, val):
|
||||
class PseudoDevice(Writable):
|
||||
def write(self, val):
|
||||
print val
|
||||
if val == 50.0:
|
||||
print "1"
|
||||
@@ -21,8 +17,8 @@ class PseudoDevice(RegisterBase):
|
||||
Scienta.getCenterEnergy().write(val)
|
||||
|
||||
|
||||
|
||||
add_device(PseudoDevice("pseudo_device"), True)
|
||||
pseudo_device = PseudoDevice()
|
||||
#add_device(PseudoDevice("pseudo_device"), True)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user