📄 thermoform.vb
字号:
Public Class frmThermo
Inherits System.Windows.Forms.Form
Dim GainCode As Short
' Dim GainCodeList(16) As Short
Dim NumOfInputRange As Short
Dim InputRangeList(30) As String
' Dim InputRangeList As New String("", 30)
Dim Reading As Boolean
Dim SampleNumber As Integer
Dim IsInitializing As Boolean
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
IsInitializing = True
InitializeComponent()
IsInitializing = False
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Public WithEvents cmdExit As System.Windows.Forms.Button
Public WithEvents ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents cmbDasChannel As System.Windows.Forms.ComboBox
Public WithEvents txtDaughterName As System.Windows.Forms.TextBox
Public WithEvents cmbSelectDaughter As System.Windows.Forms.Button
Public WithEvents cmbDaughterChannel As System.Windows.Forms.ComboBox
Public WithEvents cmbThermoScale As System.Windows.Forms.ComboBox
Public WithEvents cmbThermoType As System.Windows.Forms.ComboBox
Public WithEvents cmbInputRange As System.Windows.Forms.ComboBox
Public WithEvents Line1 As System.Windows.Forms.Label
Public WithEvents Label4 As System.Windows.Forms.Label
Public WithEvents Label12 As System.Windows.Forms.Label
Public WithEvents Label11 As System.Windows.Forms.Label
Public WithEvents Label9 As System.Windows.Forms.Label
Public WithEvents Label7 As System.Windows.Forms.Label
Public WithEvents Label3 As System.Windows.Forms.Label
Public WithEvents Frame1 As System.Windows.Forms.GroupBox
Public WithEvents txtDeviceNum As System.Windows.Forms.TextBox
Public WithEvents txtDeviceName As System.Windows.Forms.TextBox
Public WithEvents cmdSelectDevice As System.Windows.Forms.Button
Public WithEvents Label1 As System.Windows.Forms.Label
Public WithEvents Label2 As System.Windows.Forms.Label
Public WithEvents Frame4 As System.Windows.Forms.GroupBox
Public WithEvents txtSampleNumber As System.Windows.Forms.TextBox
Public WithEvents txtThermoReading As System.Windows.Forms.TextBox
Public WithEvents hscrlFreq As System.Windows.Forms.HScrollBar
Public WithEvents cmdThermoStop As System.Windows.Forms.Button
Public WithEvents cmdThermoStart As System.Windows.Forms.Button
Public WithEvents Label13 As System.Windows.Forms.Label
Public WithEvents Label10 As System.Windows.Forms.Label
Public WithEvents Label8 As System.Windows.Forms.Label
Public WithEvents Label6 As System.Windows.Forms.Label
Public WithEvents Label5 As System.Windows.Forms.Label
Public WithEvents ScanTimer As System.Windows.Forms.Timer
Friend WithEvents txtErrCode As System.Windows.Forms.TextBox
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents DAQAI1 As AxDAQAILib.AxDAQAI
Public WithEvents FrameProperty As System.Windows.Forms.GroupBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmThermo))
Me.cmdExit = New System.Windows.Forms.Button
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.cmbInputRange = New System.Windows.Forms.ComboBox
Me.txtDeviceNum = New System.Windows.Forms.TextBox
Me.txtDeviceName = New System.Windows.Forms.TextBox
Me.cmdSelectDevice = New System.Windows.Forms.Button
Me.cmdThermoStop = New System.Windows.Forms.Button
Me.cmdThermoStart = New System.Windows.Forms.Button
Me.FrameProperty = New System.Windows.Forms.GroupBox
Me.cmbDasChannel = New System.Windows.Forms.ComboBox
Me.txtDaughterName = New System.Windows.Forms.TextBox
Me.cmbSelectDaughter = New System.Windows.Forms.Button
Me.cmbDaughterChannel = New System.Windows.Forms.ComboBox
Me.cmbThermoScale = New System.Windows.Forms.ComboBox
Me.cmbThermoType = New System.Windows.Forms.ComboBox
Me.Line1 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label12 = New System.Windows.Forms.Label
Me.Label11 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Frame1 = New System.Windows.Forms.GroupBox
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Frame4 = New System.Windows.Forms.GroupBox
Me.Label14 = New System.Windows.Forms.Label
Me.txtErrCode = New System.Windows.Forms.TextBox
Me.txtSampleNumber = New System.Windows.Forms.TextBox
Me.txtThermoReading = New System.Windows.Forms.TextBox
Me.hscrlFreq = New System.Windows.Forms.HScrollBar
Me.Label13 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.ScanTimer = New System.Windows.Forms.Timer(Me.components)
Me.DAQAI1 = New AxDAQAILib.AxDAQAI
Me.FrameProperty.SuspendLayout()
Me.Frame1.SuspendLayout()
Me.Frame4.SuspendLayout()
CType(Me.DAQAI1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'cmdExit
'
Me.cmdExit.BackColor = System.Drawing.SystemColors.Control
Me.cmdExit.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdExit.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdExit.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdExit.Location = New System.Drawing.Point(384, 56)
Me.cmdExit.Name = "cmdExit"
Me.cmdExit.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdExit.Size = New System.Drawing.Size(89, 25)
Me.cmdExit.TabIndex = 43
Me.cmdExit.Text = "&Close"
Me.ToolTip1.SetToolTip(Me.cmdExit, "Close application")
'
'cmbInputRange
'
Me.cmbInputRange.BackColor = System.Drawing.SystemColors.Window
Me.cmbInputRange.Cursor = System.Windows.Forms.Cursors.Default
Me.cmbInputRange.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbInputRange.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmbInputRange.ForeColor = System.Drawing.SystemColors.WindowText
Me.cmbInputRange.Location = New System.Drawing.Point(112, 24)
Me.cmbInputRange.Name = "cmbInputRange"
Me.cmbInputRange.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmbInputRange.Size = New System.Drawing.Size(105, 22)
Me.cmbInputRange.TabIndex = 8
Me.ToolTip1.SetToolTip(Me.cmbInputRange, "Input voltage range")
'
'txtDeviceNum
'
Me.txtDeviceNum.AcceptsReturn = True
Me.txtDeviceNum.AutoSize = False
Me.txtDeviceNum.BackColor = System.Drawing.SystemColors.Window
Me.txtDeviceNum.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtDeviceNum.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtDeviceNum.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtDeviceNum.Location = New System.Drawing.Point(88, 24)
Me.txtDeviceNum.MaxLength = 0
Me.txtDeviceNum.Name = "txtDeviceNum"
Me.txtDeviceNum.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtDeviceNum.Size = New System.Drawing.Size(57, 19)
Me.txtDeviceNum.TabIndex = 3
Me.txtDeviceNum.Text = "-100"
Me.ToolTip1.SetToolTip(Me.txtDeviceNum, "Device Number")
'
'txtDeviceName
'
Me.txtDeviceName.AcceptsReturn = True
Me.txtDeviceName.AutoSize = False
Me.txtDeviceName.BackColor = System.Drawing.SystemColors.Window
Me.txtDeviceName.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtDeviceName.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtDeviceName.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtDeviceName.Location = New System.Drawing.Point(88, 48)
Me.txtDeviceName.MaxLength = 0
Me.txtDeviceName.Name = "txtDeviceName"
Me.txtDeviceName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtDeviceName.Size = New System.Drawing.Size(272, 19)
Me.txtDeviceName.TabIndex = 2
Me.txtDeviceName.Text = "AdvanTech"
Me.ToolTip1.SetToolTip(Me.txtDeviceName, "Device Name")
'
'cmdSelectDevice
'
Me.cmdSelectDevice.BackColor = System.Drawing.SystemColors.Control
Me.cmdSelectDevice.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdSelectDevice.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdSelectDevice.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdSelectDevice.Location = New System.Drawing.Point(264, 16)
Me.cmdSelectDevice.Name = "cmdSelectDevice"
Me.cmdSelectDevice.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdSelectDevice.Size = New System.Drawing.Size(97, 25)
Me.cmdSelectDevice.TabIndex = 1
Me.cmdSelectDevice.Text = "&Select Device"
Me.ToolTip1.SetToolTip(Me.cmdSelectDevice, "Selecting device to operation")
'
'cmdThermoStop
'
Me.cmdThermoStop.BackColor = System.Drawing.SystemColors.Control
Me.cmdThermoStop.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdThermoStop.Enabled = False
Me.cmdThermoStop.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdThermoStop.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdThermoStop.Location = New System.Drawing.Point(104, 24)
Me.cmdThermoStop.Name = "cmdThermoStop"
Me.cmdThermoStop.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdThermoStop.Size = New System.Drawing.Size(73, 25)
Me.cmdThermoStop.TabIndex = 12
Me.cmdThermoStop.Text = "St&op"
Me.ToolTip1.SetToolTip(Me.cmdThermoStop, "Stop Auto Scan")
'
'cmdThermoStart
'
Me.cmdThermoStart.BackColor = System.Drawing.SystemColors.Control
Me.cmdThermoStart.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdThermoStart.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdThermoStart.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdThermoStart.Location = New System.Drawing.Point(16, 24)
Me.cmdThermoStart.Name = "cmdThermoStart"
Me.cmdThermoStart.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdThermoStart.Size = New System.Drawing.Size(73, 25)
Me.cmdThermoStart.TabIndex = 11
Me.cmdThermoStart.Text = "St&art"
Me.ToolTip1.SetToolTip(Me.cmdThermoStart, "Star Auto Scan")
'
'FrameProperty
'
Me.FrameProperty.BackColor = System.Drawing.SystemColors.Control
Me.FrameProperty.Controls.Add(Me.cmbDasChannel)
Me.FrameProperty.Controls.Add(Me.txtDaughterName)
Me.FrameProperty.Controls.Add(Me.cmbSelectDaughter)
Me.FrameProperty.Controls.Add(Me.cmbDaughterChannel)
Me.FrameProperty.Controls.Add(Me.cmbThermoScale)
Me.FrameProperty.Controls.Add(Me.cmbThermoType)
Me.FrameProperty.Controls.Add(Me.cmbInputRange)
Me.FrameProperty.Controls.Add(Me.Line1)
Me.FrameProperty.Controls.Add(Me.Label4)
Me.FrameProperty.Controls.Add(Me.Label12)
Me.FrameProperty.Controls.Add(Me.Label11)
Me.FrameProperty.Controls.Add(Me.Label9)
Me.FrameProperty.Controls.Add(Me.Label7)
Me.FrameProperty.Controls.Add(Me.Label3)
Me.FrameProperty.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.FrameProperty.ForeColor = System.Drawing.SystemColors.ControlText
Me.FrameProperty.Location = New System.Drawing.Point(8, 96)
Me.FrameProperty.Name = "FrameProperty"
Me.FrameProperty.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.FrameProperty.Size = New System.Drawing.Size(248, 241)
Me.FrameProperty.TabIndex = 44
Me.FrameProperty.TabStop = False
Me.FrameProperty.Text = "Property Settings:"
'
'cmbDasChannel
'
Me.cmbDasChannel.BackColor = System.Drawing.SystemColors.Window
Me.cmbDasChannel.Cursor = System.Windows.Forms.Cursors.Default
Me.cmbDasChannel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbDasChannel.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmbDasChannel.ForeColor = System.Drawing.SystemColors.WindowText
Me.cmbDasChannel.Location = New System.Drawing.Point(112, 96)
Me.cmbDasChannel.Name = "cmbDasChannel"
Me.cmbDasChannel.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmbDasChannel.Size = New System.Drawing.Size(105, 22)
Me.cmbDasChannel.TabIndex = 28
'
'txtDaughterName
'
Me.txtDaughterName.AcceptsReturn = True
Me.txtDaughterName.AutoSize = False
Me.txtDaughterName.BackColor = System.Drawing.SystemColors.Window
Me.txtDaughterName.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtDaughterName.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtDaughterName.ForeColor = System.Drawing.SystemColors.WindowText
Me.txtDaughterName.Location = New System.Drawing.Point(112, 168)
Me.txtDaughterName.MaxLength = 0
Me.txtDaughterName.Name = "txtDaughterName"
Me.txtDaughterName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtDaughterName.Size = New System.Drawing.Size(105, 25)
Me.txtDaughterName.TabIndex = 22
Me.txtDaughterName.Text = ""
'
'cmbSelectDaughter
'
Me.cmbSelectDaughter.BackColor = System.Drawing.SystemColors.Control
Me.cmbSelectDaughter.Cursor = System.Windows.Forms.Cursors.Default
Me.cmbSelectDaughter.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmbSelectDaughter.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmbSelectDaughter.Location = New System.Drawing.Point(112, 136)
Me.cmbSelectDaughter.Name = "cmbSelectDaughter"
Me.cmbSelectDaughter.RightToLeft = System.Windows.Forms.RightToLeft.No
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -