cleanup MXTuning.py
This commit is contained in:
@@ -44,10 +44,13 @@ class MXTuning(Tuning):
|
|||||||
Tuning.__init__(self,comm,gather)
|
Tuning.__init__(self,comm,gather)
|
||||||
|
|
||||||
|
|
||||||
def init_stage(self):
|
def init_stage(self,force=True):
|
||||||
comm=self.comm
|
comm=self.comm
|
||||||
if comm is None: return
|
if comm is None: return
|
||||||
gpascii=comm.gpascii
|
gpascii=comm.gpascii
|
||||||
|
if force==False and gpascii.get_variable('Motor[1].HomeComplete', int) == 1:
|
||||||
|
return
|
||||||
|
|
||||||
sys.stdout.write('homing stage');sys.stdout.flush()
|
sys.stdout.write('homing stage');sys.stdout.flush()
|
||||||
gpascii.send_line('enable plc1')
|
gpascii.send_line('enable plc1')
|
||||||
time.sleep(.2)
|
time.sleep(.2)
|
||||||
@@ -59,8 +62,6 @@ class MXTuning(Tuning):
|
|||||||
sys.stdout.write('.');sys.stdout.flush()
|
sys.stdout.write('.');sys.stdout.flush()
|
||||||
time.sleep(.2)
|
time.sleep(.2)
|
||||||
|
|
||||||
#Coord[%d].ProgActive if a running proc
|
|
||||||
|
|
||||||
def bode_model_plot(self, mot,base):
|
def bode_model_plot(self, mot,base):
|
||||||
self.bode_full_plot(mot,base)
|
self.bode_full_plot(mot,base)
|
||||||
fig=plt.gcf()
|
fig=plt.gcf()
|
||||||
|
|||||||
Reference in New Issue
Block a user