Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1055df729e |
@ -36,6 +36,7 @@ Public Class frmTD_JIG
|
|||||||
Public Title_Text As String
|
Public Title_Text As String
|
||||||
Public AutoAgingCnt As Long
|
Public AutoAgingCnt As Long
|
||||||
Public CkbNoRun As Boolean
|
Public CkbNoRun As Boolean
|
||||||
|
Public baudrate_ini As Integer
|
||||||
|
|
||||||
Private txtPVSN As String
|
Private txtPVSN As String
|
||||||
Private SettingMeasure As String
|
Private SettingMeasure As String
|
||||||
@ -451,6 +452,8 @@ Public Class frmTD_JIG
|
|||||||
txbMinValue.Text = ConifgStr
|
txbMinValue.Text = ConifgStr
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
baudrate_ini = Integer.Parse(ConifgStr.Split(","c).Last()) 'get last string in ini file
|
||||||
|
|
||||||
ParaComport = cboComPort.Text
|
ParaComport = cboComPort.Text
|
||||||
ParaScopeID = "USB0::0x2A8D::" & txbScopeID.Text & "::0::INSTR"
|
ParaScopeID = "USB0::0x2A8D::" & txbScopeID.Text & "::0::INSTR"
|
||||||
|
|
||||||
@ -844,7 +847,7 @@ WR_File_Error:
|
|||||||
If cmdSerialPort.IsOpen = False Then
|
If cmdSerialPort.IsOpen = False Then
|
||||||
With cmdSerialPort
|
With cmdSerialPort
|
||||||
.PortName = ParaComport
|
.PortName = ParaComport
|
||||||
.BaudRate = 230400
|
.BaudRate = baudrate_ini '230400
|
||||||
.DataBits = 8
|
.DataBits = 8
|
||||||
.Parity = IO.Ports.Parity.None
|
.Parity = IO.Ports.Parity.None
|
||||||
.StopBits = IO.Ports.StopBits.One
|
.StopBits = IO.Ports.StopBits.One
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user