Startup
This commit is contained in:
@@ -7,13 +7,35 @@ import java.awt.Color as Color
|
||||
import ch.psi.pshell.crlogic.CrlogicPositioner as CrlogicPositioner
|
||||
import ch.psi.pshell.crlogic.CrlogicSensor as CrlogicSensor
|
||||
|
||||
import ch.psi.pshell.ui.App as App
|
||||
|
||||
|
||||
#get_context().dataManager.provider.embeddedAtributes = False
|
||||
#get_context().dataManager.provider.ADD_ATTRIBUTE_FILE_TIMESTAMP = True
|
||||
###################################################################################################
|
||||
# EPICS utilities
|
||||
###################################################################################################
|
||||
|
||||
|
||||
def caget_str(ch):
|
||||
return ''.join((chr(i) if i else "") for i in caget(ch))
|
||||
|
||||
def caput_str(ch, val):
|
||||
ret = [ord(c) for c in val]
|
||||
ret = ret + ([0] * (256-len(ret)))
|
||||
ret = to_array(ret, 'b')
|
||||
caput(ch, ret)
|
||||
|
||||
|
||||
|
||||
###################################################################################################
|
||||
def on_command_started(info):
|
||||
print "Start"
|
||||
pass #print "Start: " + str(info.script)
|
||||
def on_command_finished(info):
|
||||
print "Finished: " + str(info.script) + str(info.error)
|
||||
pass #print "Finished: " + str(info.script) + " Error: " + str(info.error)
|
||||
def on_change_data_path(path):
|
||||
print "Data path: " + str(path)
|
||||
|
||||
###################################################################################################
|
||||
# Layout setup
|
||||
###################################################################################################
|
||||
@@ -194,7 +216,8 @@ def integrate_image():
|
||||
def trig_scienta():
|
||||
#scienta.start()
|
||||
#scienta.waitReady(-1)
|
||||
time.sleep(1.0)
|
||||
print "Trig Scienta"
|
||||
time.sleep(0.1)
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user