Example #1
0
    def on_spvalving_dev_clicked(self):
##        b = self.laser_dev.text()
##        c = self.linear_dev.text()
        t = self.t_dev.text()
        x = self.x_dev.text()
        n = self.n_dev.text()
        r = self.r_dev.text()
        Ms.valving(x,n,r,t,26,18)
Example #2
0
 def on_step6_dev_clicked(self):
     a0 = self.a0_dev.text()
     a1 = self.a1_dev.text()
     f = self.f_dev.text()
     t = self.t_dev.text()
     Ms.os(a0,a1,f,t)
     Ms.spin(500,20)
     Ms.s.stop()
Example #3
0
    def on_step0_dev_clicked(self):
        n = self.n_dev.text()
        x = self.x_dev.text()
        pid = self.pid_dev.text()
        temp_var = self.dateEdit.date()
        date = temp_var.toPyDate()
        exp = self.expo_dev.text()
        wd = '/images/data/{}/{}/AST'.format(date,pid)
        self.datawd = os.getcwd()+wd
##        a = int(self.led_dev.text())
##        b = int(self.laser_dev.text())
##        c = int(self.linear_dev.text())
        Ms.step0(n,x,pid,0,date,27,26,18)
Example #4
0
    def on_step7_dev_clicked(self):
        
        n = self.n_dev.text()
        n = int(n)
        x = self.x_dev.text()
        x = int(x)
        pid = self.pid_dev.text()
        temp_var = self.dateEdit.date()
        date = temp_var.toPyDate()
        exp = self.expo_dev.text()
        exp = int(exp)
        wd = '/images/data/{}/{}/AST'.format(date,pid)
        tempwd = 'home/pi/MDX_codes/images/data/Current_result'
        self.datawd = os.getcwd()+wd
##        a = self.led_dev.text()
        Ms.camera(x,n,1,self.datawd,exp,27)
Example #5
0
 def on_step5_dev_clicked(self):
     a0 = self.a0_dev.text()
     a1 = self.a1_dev.text()
     f = self.f_dev.text()
     t = self.t_dev.text()
     Ms.os(a0,a1,f,t)
Example #6
0
 def on_step3_dev_clicked(self):
     rpm = self.rpm_dev.text()
     t = self.t_dev.text()
     Ms.spin(rpm,t)
     Ms.s.stop()
Example #7
0
 def on_AST_clicked(self):
     pid = self.PatientID.toPlainText()
     temp_var = self.Testdate.date()
     date = temp_var.toPyDate()
     ms.AST(4, pid, date, 27, 26, 18)
Example #8
0
import cv2
import numpy as np
import pymba
import time
import Motorsteps as MS
import test_cameras as tc

##tc.test_cameras(0)
MS.Imageprocess('test', 'home/pi/MDX_codes/', 'home/pi/MDX_codes/')
MS.img2('test', 'home/pi/MDX_codes/', 'home/pi/MDX_codes/')