18 lines
412 B
Python
18 lines
412 B
Python
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)
|
|
append_dataset(path, time_str , type = 's')
|
|
|
|
mscan(bpm6a, bpm6a, -1, 10.0, after_read = after)
|
|
#mscan(bpm6b, bpm6b, 5)
|
|
|
|
#tscan(bpm6a, b5, 2.0)
|
|
|