work on sync process

This commit is contained in:
2019-01-21 21:25:50 +00:00
parent 069e7795e5
commit 7c2a2c5fe6
4 changed files with 116 additions and 82 deletions

View File

@@ -97,10 +97,10 @@ class MotionBase:
sftp.chmod(dst, 0o755)
self.cmdSync=cmd='LD_LIBRARY_PATH=/opt/ppmac/libppmac/ '+dst
#self.syncShell=comm.shell_channel(cmd)
#self.syncChan=sc=comm._client.exec_command(cmd)
self.syncChan=sc=comm._client.exec_command(cmd)
#ch=sc[1].channel
#ch.settimeout(1)
#print ('starting '+cmd)
print ('starting '+cmd)
def run(self):
'runs the code sync_run which has been generated with setup_sync()'

View File

@@ -840,7 +840,7 @@ if __name__=='__main__':
#sp.setup_motion(fnPrg=fn + '.prg', mode=1, pt2pt_time=40,scale=0)
#sp.setup_motion(fnPrg=fn + '.prg', mode=1, pt2pt_time=40,scale=1)
sp.setup_gather(acq_per=1)
sp.setup_sync(mode=2) #sync with timing system and PLC to sync speed (PROG)
sp.setup_sync(mode=1) #sync with timing system and PLC to sync speed (PROG)
sp.setup_coord_trf() # reset to shape path system
sp.setup_motion(fnPrg=fn + '.prg', mode=3, pt2pt_time=40,scale=1,dwell=10)
sp.run()