Script execution
This commit is contained in:
1 parent
1ea60ca4b0
commit
a98a1773f8
1 file changed
+1
-2
@@ -3,11 +3,10 @@ import datetime
|
||||
|
||||
|
||||
def after(rec, scan):
|
||||
cache = bpm6a.takeTimestamped()
|
||||
path = get_exec_pars().group+"/TimeIOC"
|
||||
if rec.index==0:
|
||||
create_dataset(path, 's')
|
||||
time_str = '.' + str(datetime.datetime.fromtimestamp(cache.nanos/1e9)).zfill(9)
|
||||
time_str = str(datetime.datetime.fromtimestamp(bpm6a.timestampNanos/1e9)).zfill(9)
|
||||
append_dataset(path, time_str , type = 's')
|
||||
|
||||
mscan(bpm6a, bpm6a, -1, 10.0, after_read = after)
|
||||
|
||||
Reference in new issue
Block a user