Changeset 783 in ETALON for BPM/motor_control.py


Ignore:
Timestamp:
Jul 17, 2018, 4:02:19 PM (6 years ago)
Author:
moutardier
Message:

add line to wait until motor stop move befor doing anything else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BPM/motor_control.py

    r782 r783  
    1 import time
    2 import urllib
    3 import os
     1#import time
     2#import urllib
     3#import os
    44from initialise_motors import *
    55from scope_function import *
    6 import numpy as np
    7 import matplotlib.pyplot as plt
     6#import numpy as np
     7#import matplotlib.pyplot as plt
    88
    99# moteur 1 -> horizontal
     
    1616motor_enable(1)
    1717move_motor_absolute(1,5000,-5000)
     18#while motor_get(1, 'status') != 'READY':
     19#    time.sleep(1)
    1820move_motor_absolute(1,5000,0)
     21#while motor_get(1, 'status') != 'READY':
     22#    time.sleep(1)
    1923motor_disable(1)
    2024
Note: See TracChangeset for help on using the changeset viewer.