diff --git a/frmTD_JIG.vb b/frmTD_JIG.vb index a4d6b6e..52fffca 100644 --- a/frmTD_JIG.vb +++ b/frmTD_JIG.vb @@ -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