use new ESB_MX module and better triggerSync

This commit is contained in:
2022-10-04 17:27:13 +02:00
parent 7a67889992
commit c75c2c1d33
4 changed files with 76 additions and 231 deletions

View File

@@ -2109,7 +2109,6 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
jf=app._jungfrau
except AttributeError:
app._jungfrau=jf=psi_device.Jungfrau()
sp=dt._shapepath
sp.verbose=dt_misc['verbose']
sp.points=kwargs['points']
@@ -2127,7 +2126,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=dt_misc['time_ofs'])
sp.setup_sync(verbose=sp.verbose&0x40, timeOfs=dt_misc['time_ofs'], timeCor=dt_misc['time_cor'])
try:
p=geo._fitPlane
#X has inverted sign !
@@ -2153,9 +2152,9 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
sp.homing() # homing if needed
sp.run() # start motion program
sp.wait_armed() # wait until motors are at first position
#time.sleep(1.0) # wait armed does not wor yet ?!?
jf.acquire(sp.points.shape[0])
sp.trigger(0.0) # send a start trigger (if needed) after given time
sp.trigger(0.5) # 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])