Пример #1
0
 def setup(self):
     self.g = G(print_lines=False, direct_write=True)
     self.kp = KeyenceProfilometer('COM3') #com3
     self.km = KeyenceMicrometer('COM8')
     self.g.write('POSOFFSET CLEAR X Y U A B C D')
Пример #2
0
from mecode.devices.keyence_profilometer import KeyenceProfilometer
from mecode.devices.keyence_micrometer import KeyenceMicrometer
from mecode.devices.efd_pressure_box import EFDPressureBox
from mecode import G
from mecode.utils import profile_surface, write_cal_file
import pickle
from slidedata import *
from aligndata import *

kp = KeyenceProfilometer('COM3')
km = KeyenceMicrometer('COM8')
pb = EFDPressureBox('COM4')
g = G(direct_write=True, print_lines=False)
#value = kp.read()
Substrate_Guess = (36.05, 124.01)  #(200, 200)
A_alignment_save = 'C:\Users\Lewis Group\Desktop\python alignment backup\axis_A.txt'
B_alignment_save = 'C:\Users\Lewis Group\Desktop\python alignment backup\axis_B.txt'
C_alignment_save = 'C:\Users\Lewis Group\Desktop\python alignment backup\axis_C.txt'
D_alignment_save = 'C:\Users\Lewis Group\Desktop\python alignment backup\axis_D.txt'
profile_many_substrates = 'C:\Users\Lewis Group\Desktop\python alignment backup\substrate_rel_positions.txt'
value = kp.read()
print value


def find_profilometer_center(kp, axis, zStart, step, dwell, speed, floor):
    g.feed(15)
    g.abs_move(**{axis: zStart})
    g.feed(speed)
    g.dwell(dwell)
    value = None
    while value is None: