User Tools

Site Tools


motors-scanner-test-1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
motors-scanner-test-1 [2012/10/06 16:23]
85.218.109.130
motors-scanner-test-1 [2012/10/06 16:40]
85.218.109.130
Line 20: Line 20:
 # this file is parsed by the csv module to find the number of data packets that have passed through the network since the last check  # this file is parsed by the csv module to find the number of data packets that have passed through the network since the last check 
  
-listlasted=subprocess.Popen("​ls -ct1 *csv | head -1", shell=True, stdout=subprocess.PIPE,​ stderr=subprocess.PIPE)+listlasted=subprocess.Popen("​ls -ct1 /​home/​gordo/​rknfg/​*csv | head -1", shell=True, stdout=subprocess.PIPE,​ stderr=subprocess.PIPE)
 lasted=listlasted.communicate()[0].strip() lasted=listlasted.communicate()[0].strip()
 print lasted print lasted
Line 40: Line 40:
 # moving part ------------------- # moving part -------------------
    
-portz=glob.glob("/​dev/​ttyUSB*")[0]+portz=glob.glob("/​dev/​tty*")[0]
 #print portz #print portz
    
motors-scanner-test-1.txt ยท Last modified: 2012/10/08 16:45 by 85.218.109.130