Example #1
0
 def _update_newT(self,T):
     #print "new T:",T
     #print self.newT_SpinBox.value()
     rc = remote_client(self.data)    
     rc.send("set T "+str(T))
     if not int(rc.recv().strip()) == 1:
         raise Error("communication error")
     rc.close()
Example #2
0
    def _update_SET_temperature(self):
    
        rc = remote_client(self.data)
        
        rc.send("GET TCTRL")
        self.data.set_T = float(rc.recv())
        rc.close()

        self.newT_SpinBox.setValue(self.data.set_T)
Example #3
0
 def _update_PID_from_remote(self):
 
     rc = remote_client(self.data)
     
     rc.send("GET PID")
     pid_str=rc.recv().split()
     rc.close()
     self.data.P = float(pid_str[0])
     self.data.I = float(pid_str[1])
     self.data.D = float(pid_str[2])
     self.P_SpinBox.setValue(self.data.P)
     self.I_SpinBox.setValue(self.data.I)
     self.D_SpinBox.setValue(self.data.D)
Example #4
0
 def _update_PID(self):
    rc = remote_client(self.data)
    rc.send("set PID %.5f %.5f %.5f"% (self.data.P,self.data.I,self.data.D))
    if not int(rc.recv().strip()) == 1:
        raise Error("communication error")
    rc.close()