| | |
| | | from ast import Not, Pass |
| | | from asyncio.windows_events import NULL |
| | | from concurrent.futures import thread |
| | | from curses import flash |
| | | from logging import exception |
| | |
| | | TIMING_DICT.keys())[self.devicedescription.baudrate] |
| | | self._usbcan = USBCAN(device_type=4, |
| | | device_index=0, |
| | | can_index=0, |
| | | can_index=self.devicedescription.channel, |
| | | bitrate=bitrate, |
| | | can_filters=can_filters) |
| | | if not self._usbcan.InitAndStart(): |
| | |
| | | pass |
| | | |
| | | def TestPresentEvent(self): |
| | | self.udsclient. |
| | | if self.UI.radioButton.isChecked(): |
| | | self.TestPresentTimer.start(3000) |
| | | else: |
| | |
| | | self.UI.lineEdit_2.clear() |
| | | data = self.ReadByDID(tempdid) |
| | | if data is not None and len(str(data[tempdid])): |
| | | # print(data[tempdid]) |
| | | self.UI.lineEdit_2.setText(data[tempdid]) |
| | | if '\x00' in data[tempdid]: |
| | | out1, out2 = data[tempdid].split('\x00', 1) |
| | | self.UI.lineEdit_2.setText(out1) |
| | | else: |
| | | self.UI.lineEdit_2.setText(data[tempdid]) |
| | | |
| | | def WriteDataByID(self): |
| | | tempdid = DID_dic[self.UI.comboBox_6.currentText()] |