File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
qe/src/main/java/com/tlcsdm/qe/tools Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 72
72
*/
73
73
public class SerialPortTool extends QeSample implements Initializable {
74
74
75
+ //串口名称选择器
75
76
@ FXML
76
77
private ComboBox <SerialPort > serPort ;
78
+ //波特率选择器
77
79
@ FXML
78
80
private ComboBox <String > serPortSpeed ;
81
+ //检验位选择器
79
82
@ FXML
80
83
private ComboBox <String > serPortCheckBit ;
84
+ //数据位选择器
81
85
@ FXML
82
86
private ComboBox <String > serPortDataBit ;
87
+ //停止位选择器
83
88
@ FXML
84
89
private ComboBox <String > serPortStopBit ;
85
90
@ FXML
86
91
private Button serPortOpenBtn ;
92
+ //16进制接收显示开关
87
93
@ FXML
88
94
private CheckBox recvShowHex ;
89
95
@ FXML
@@ -342,9 +348,10 @@ public void initializeUI() {
342
348
serPortStopBit .setDisable (true );
343
349
}
344
350
});
345
- //
351
+
346
352
// sendBtn.setOnAction(event -> {
347
- // if (null == serialPort || (!serialPort.isOpened())) {
353
+ // SerialPort serialPort = serPort.getSelectionModel().getSelectedItem();
354
+ // if (null == serialPort || (!serialPort.isOpen())) {
348
355
// // new AlertBox().display("错误", "请先打开串口");
349
356
// return;
350
357
// }
You can’t perform that action at this time.
0 commit comments