Changeset 776 in ETALON
- Timestamp:
- Jun 11, 2018, 6:16:57 PM (6 years ago)
- Location:
- BPM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BPM/initialise_motors.py
r775 r776 52 52 if motor == 2: # security to avoid issue with vertical motor 53 53 print('are you sure to wanted to disable vertical motor ? \n yes or no') 54 x = raw_input()55 while not (x == 'yes' or x == 'no' or x == 'y' or x == 'n' or x == 'YES' or x == 'NO' or x == 'Y' or x == 'N'):56 print('Do you want to disable vertical motor ?')57 54 x = raw_input() 58 if (x == 'no' or x == 'n' or x == 'NO' or x == 'N'): 59 print('Be carful with disable vertical motor') 60 exit() 55 while not (x == 'yes' or x == 'no' or x == 'y' or x == 'n' or x == 'YES' or x == 'NO' or x == 'Y' or x == 'N'): 56 print('Do you want to disable vertical motor ?') 57 x = raw_input() 58 if (x == 'no' or x == 'n' or x == 'NO' or x == 'N'): 59 print('Be carful with disable vertical motor') 60 exit() 61 61 msg = str(motor) + 'CD' 62 62 motor_send(msg, verbose) … … 283 283 time.sleep(1) 284 284 motor_disable(1) 285 for i in range(4):286 plt.plot(L[0],L[i+1])287 plt.show()288 285 fichier.close() 286 # for i in range(4): 287 # plt.plot(L[0],L[i+1]) 288 # plt.show() 289 289 290 290 291 … … 318 319 L[j].append(l[j]) 319 320 time.sleep(1) 320 for i in range(4): 321 plt.plot(L[0],L[i+1]) 322 plt.show() 321 # for i in range(4): 322 # plt.plot(L[0],L[i+1]) 323 # plt.show() 324 motor_disable(2) 323 325 fichier.close() 324 326 325 327 326 327 328 """ 329 def aquisition(begin1,end1,begin2,end2,pas1,pas2,bpm_name): 328 330 idata = 0 329 331 start_time_str=datetime.now().strftime("%Y%m%d_%H%M%S") … … 363 365 plt.show() 364 366 fichier.close() 365 367 """ 366 368 367 369 -
BPM/motor_control.py
r773 r776 17 17 18 18 move_motor_absolute(2,5000,0) 19 while motor_get(1, 'status') != 'READY': 20 time.sleep(1) 19 21 20 22 #controller_hello() … … 32 34 33 35 34 35 36 """37 36 turn_on() 38 37 39 horizontal_aquisition(0,400000,4000,"ch1-3_bpm_ref_ch2-4_bpm_impr") 38 vertical_aquisition(-110000,90000,4000,"ch1-3_bpm_ref_ch2-4_bpm_impr_vertical_acquisition") 39 40 vertical_aquisition(90000,-110000,-4000,"ch1-3_bpm_ref_ch2-4_bpm_impr_vertical_acquisition") 41 42 #vertical_aquisition(0,4000,2000,"test") 40 43 41 44 #horizontal_aquisition(400000,0,-4000,"ch1-3_bpm_ref_ch2-4_bpm_impr") 42 45 43 46 turn_off() 44 """ 47 45 48 #fichier = open("24-05-2018_aquisition_from_0_to_400000_step_of_1000.txt", "r") 46 49 """ -
BPM/print_datas.py
r775 r776 80 80 81 81 82 print_data("data/position_vs_tension_ch1-3_bpm_ref_ch2-4_bpm_impr_20180528_115159_0.txt") 82 print_data("data/position_vs_tension_ch1-3_bpm_ref_ch2-4_bpm_impr_20180611_160153_0.txt") 83 print_data("data/position_vs_tension_ch1-3_bpm_ref_ch2-4_bpm_impr_20180611_163036_0.txt")
Note: See TracChangeset
for help on using the changeset viewer.