fix in synchronization, add padding frames for JF

This commit is contained in:
2022-09-28 16:56:32 +02:00
parent a186d256d3
commit 7a67889992
3 changed files with 11 additions and 7 deletions

View File

@@ -2114,6 +2114,9 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
sp.verbose=dt_misc['verbose']
sp.points=kwargs['points']
sp.meta['pt2pt_time']=dt_misc['pt2pt_time']
sp.meta['sync_mode']=dt_misc['sync_mode']
sp.meta['sync_flag']=dt_misc['sync_flag']
with pg.ProgressDialog('Progress', 0, 100) as dlg:
dlg.setWindowModality(Qt.WindowModal)
#dlg.setRange(0, 0)
@@ -2124,7 +2127,7 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
dlg.setLabelText("Setup Gather/Sync");dlg+=5
sp.setup_gather()
sp.setup_sync(verbose=sp.verbose&0x40, timeOfs=0.05)
sp.setup_sync(verbose=sp.verbose&0x40, timeOfs=dt_misc['time_ofs'])
try:
p=geo._fitPlane
#X has inverted sign !
@@ -2151,8 +2154,8 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
sp.run() # start motion program
sp.wait_armed() # wait until motors are at first position
sp.trigger(0.5) # send a start trigger (if needed) after given time
jf.acquire(sp.points.shape[0])
sp.trigger(0.0) # send a start trigger (if needed) after given time
if not dt._comm is None:
dlg.setLabelText("run motion/acquisition")
dlg.setMaximum(sp.points.shape[0])