work on sync process
This commit is contained in:
@@ -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()'
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user