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