Exemplo n.º 1
0
 def TerminalSendClicked(self):
     terminalstring = self.terminal.text()
     print terminalstring
     comSer.write(terminalstring.toAscii())
Exemplo n.º 2
0
    def AddToQueue(self):
        """This reads test parameters and sends test parameters to ESTR"""
        #test 1
        if self.mirrorMessage.isChecked():
            test1 = True
        else:
            test1 = False
        #test 2
        if self.mirrorMessageRx.isChecked():
            test2 = True
        else:
            test2 = False
        #test 3
        if self.MessageCheck.isChecked():
            test3 = True
        else:
            test3 = False
        #test 4
        if self.ClockVar.isChecked():
            test4 = True
        else:
            test4 = False
        #test 5
        if self.VarFreq.isChecked():
            test5 = True
        else:
            test5 = False
        #test 6
        if self.PulseB.isChecked():
            test6 = True
        else:
            test6 = False
        #test 7
        if self.SynEvents.isChecked():
            test7 = True
        else:
            test7 = False
        #test 8
        if self.AsynEvents.isChecked():
            test8 = True
        else:
            test8 = False
        #test 9
        if self.TransMessage.isChecked():
            test9 = True
        else:
            test9 = False

        #test 1
        self.mirrorMessage.setCheckState(False)
        #test 2
        self.mirrorMessageRx.setCheckState(False)
        #test 3
        self.MessageCheck.setCheckState(False)
        #test 4
        self.ClockVar.setCheckState(False)
        #test 5
        self.VarFreq.setCheckState(False)
        #test 6
        self.PulseB.setCheckState(False)
        #test 7
        self.SynEvents.setCheckState(False)
        #test 8
        self.AsynEvents.setCheckState(False)
        #test 9
        self.TransMessage.setCheckState(False)
        global idd
        global name
        if test1 or test2 or test3 or test4 or test5 or test6 or test7 or test8 or test9:
            print idd
            name = str(idd) + "\n" + name
            #self.queueList.setText(name)
            stringidd = str(idd)
            idd = idd + 1

            self.testid.setStyleSheet("""font: 20pt "Poor Richard";""")
            self.testid.setText(stringidd)
            bank = ""

            if len(stringidd) > 3:
                print "error"
                return
            if len(stringidd) == 0:
                print "errro idd"
                return
            if len(stringidd) == 2:
                stringidd = '0' + stringidd
            if len(stringidd) == 1:
                stringidd = '0' + '0' + stringidd

            bank = stringidd

            if test1:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test2:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test3:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test4:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test5:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test6:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test7:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test8:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            if test9:
                bank = bank + 'a'
            else:
                bank = bank + 'b'

            print bank
            comSer.write('<' + '#' + bank + '>')
Exemplo n.º 3
0
 def OscCUPClicked(self):
     comSer.write('u')
Exemplo n.º 4
0
 def OscCDOWNClicked(self):
     comSer.write('d')
Exemplo n.º 5
0
 def OscFUPClicked(self):
     comSer.write('+')
Exemplo n.º 6
0
 def OscFDOWNClicked(self):
     comSer.write('-')
Exemplo n.º 7
0
 def resetEmergencyClicked(self):
     comSer.write('r')
Exemplo n.º 8
0
 def emergencyClicked(self):
     comSer.write('e')
Exemplo n.º 9
0
 def statusClicked(self):
     #print 's'
     comSer.write('s')
Exemplo n.º 10
0
 def resetUUT(self):
     comSer.write("<reset>")
Exemplo n.º 11
0
 def TransponderClicked(self):
     comSer.write("<Transponder>")