Closedown

This commit is contained in:
x03daop
2015-11-02 14:35:18 +01:00
parent e1392c9e74
commit e49c860346
2 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -9,6 +9,9 @@ LATENCY (double)
RELATIVE (BOOLEAN)
"""
def AfterReadout(rec):
append_diag_datasets()
set_preference(Preference.PLOT_TYPES,{'Integration':1});
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=trig_scienta)
create_diag_datasets()
lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=trig_scienta, after_read = AfterReadout)
+10
View File
@@ -154,5 +154,15 @@ def print_diag():
for f in diag_channels:
print "%-25s %s" % (f.getName() , str(f.read()))
def create_diag_datasets:
group = get_current_group() + "/" + "attrs+"/"
print group
for f in diag_channels:
create_dataset(group+f.getName() , 's' if (type(f) is ch.psi.pshell.epics.ChannelString) else 'i')
def append_diag_datasets:
group = get_current_group() + "/" + "attrs+"/"
for f in diag_channels:
append_dataset(group+f.getName(), f.take())