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