📄 aosyncform.vb
字号:
Public Class frmAoSync
Inherits System.Windows.Forms.Form
Dim IsInitializing As Boolean
Dim OutputValue(3) As Single
Dim Index As Integer
#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 Frame3 As System.Windows.Forms.GroupBox
Public WithEvents txtOutputValue As System.Windows.Forms.TextBox
Public WithEvents cmdOutputStart As System.Windows.Forms.Button
Public WithEvents cmdOutputStop As System.Windows.Forms.Button
Public WithEvents Label3 As System.Windows.Forms.Label
Public WithEvents ScanTimer As System.Windows.Forms.Timer
Public WithEvents ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents cmdExit As System.Windows.Forms.Button
Public WithEvents Frame4 As System.Windows.Forms.GroupBox
Public WithEvents txtScanTime As System.Windows.Forms.TextBox
Public WithEvents Label5 As System.Windows.Forms.Label
Public WithEvents Frame1 As System.Windows.Forms.GroupBox
Public WithEvents cmdSelectDevice As System.Windows.Forms.Button
Public WithEvents txtDeviceName As System.Windows.Forms.TextBox
Public WithEvents txtDeviceNum As System.Windows.Forms.TextBox
Public WithEvents Label2 As System.Windows.Forms.Label
Public WithEvents Label1 As System.Windows.Forms.Label
Public WithEvents Frame2 As System.Windows.Forms.GroupBox
Public WithEvents frmOutputKind As System.Windows.Forms.GroupBox
Public WithEvents optVoltageOut As System.Windows.Forms.RadioButton
Public WithEvents optCurrentOut0 As System.Windows.Forms.RadioButton
Public WithEvents optCurrentOut4 As System.Windows.Forms.RadioButton
Public WithEvents chkSyncAOEnable As System.Windows.Forms.CheckBox
Friend WithEvents DAQAO1 As AxDAQAOLib.AxDAQAO
Friend WithEvents chkListBox As System.Windows.Forms.CheckedListBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmAoSync))
Me.Frame3 = New System.Windows.Forms.GroupBox
Me.txtOutputValue = New System.Windows.Forms.TextBox
Me.cmdOutputStart = New System.Windows.Forms.Button
Me.cmdOutputStop = New System.Windows.Forms.Button
Me.Label3 = New System.Windows.Forms.Label
Me.ScanTimer = New System.Windows.Forms.Timer(Me.components)
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.cmdExit = New System.Windows.Forms.Button
Me.cmdSelectDevice = New System.Windows.Forms.Button
Me.txtDeviceName = New System.Windows.Forms.TextBox
Me.txtDeviceNum = New System.Windows.Forms.TextBox
Me.Frame4 = New System.Windows.Forms.GroupBox
Me.txtScanTime = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.Frame1 = New System.Windows.Forms.GroupBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Frame2 = New System.Windows.Forms.GroupBox
Me.chkListBox = New System.Windows.Forms.CheckedListBox
Me.frmOutputKind = New System.Windows.Forms.GroupBox
Me.optVoltageOut = New System.Windows.Forms.RadioButton
Me.optCurrentOut0 = New System.Windows.Forms.RadioButton
Me.optCurrentOut4 = New System.Windows.Forms.RadioButton
Me.chkSyncAOEnable = New System.Windows.Forms.CheckBox
Me.DAQAO1 = New AxDAQAOLib.AxDAQAO
Me.Frame3.SuspendLayout()
Me.Frame4.SuspendLayout()
Me.Frame1.SuspendLayout()
Me.Frame2.SuspendLayout()
Me.frmOutputKind.SuspendLayout()
CType(Me.DAQAO1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Frame3
'
Me.Frame3.BackColor = System.Drawing.SystemColors.Control
Me.Frame3.Controls.Add(Me.txtOutputValue)
Me.Frame3.Controls.Add(Me.cmdOutputStart)
Me.Frame3.Controls.Add(Me.cmdOutputStop)
Me.Frame3.Controls.Add(Me.Label3)
Me.Frame3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
Me.Frame3.Location = New System.Drawing.Point(408, 84)
Me.Frame3.Name = "Frame3"
Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Frame3.Size = New System.Drawing.Size(121, 172)
Me.Frame3.TabIndex = 24
Me.Frame3.TabStop = False
Me.Frame3.Text = "Sync. Output:"
'
'txtOutputValue
'
Me.txtOutputValue.AcceptsReturn = True
Me.txtOutputValue.AutoSize = False
Me.txtOutputValue.BackColor = System.Drawing.SystemColors.Window
Me.txtOutputValue.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txtOutputValue.Font = New System.Drawing.Font("Arial", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtOutputValue.ForeColor = System.Drawing.Color.Blue
Me.txtOutputValue.Location = New System.Drawing.Point(19, 136)
Me.txtOutputValue.MaxLength = 0
Me.txtOutputValue.Name = "txtOutputValue"
Me.txtOutputValue.ReadOnly = True
Me.txtOutputValue.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtOutputValue.Size = New System.Drawing.Size(69, 24)
Me.txtOutputValue.TabIndex = 16
Me.txtOutputValue.Text = ""
Me.txtOutputValue.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'cmdOutputStart
'
Me.cmdOutputStart.BackColor = System.Drawing.SystemColors.Control
Me.cmdOutputStart.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdOutputStart.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdOutputStart.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdOutputStart.Location = New System.Drawing.Point(16, 32)
Me.cmdOutputStart.Name = "cmdOutputStart"
Me.cmdOutputStart.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdOutputStart.Size = New System.Drawing.Size(73, 25)
Me.cmdOutputStart.TabIndex = 15
Me.cmdOutputStart.Text = "St&art"
Me.ToolTip1.SetToolTip(Me.cmdOutputStart, "Star Auto Scan")
'
'cmdOutputStop
'
Me.cmdOutputStop.BackColor = System.Drawing.SystemColors.Control
Me.cmdOutputStop.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdOutputStop.Enabled = False
Me.cmdOutputStop.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.cmdOutputStop.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdOutputStop.Location = New System.Drawing.Point(16, 64)
Me.cmdOutputStop.Name = "cmdOutputStop"
Me.cmdOutputStop.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdOutputStop.Size = New System.Drawing.Size(73, 25)
Me.cmdOutputStop.TabIndex = 14
Me.cmdOutputStop.Text = "St&op"
Me.ToolTip1.SetToolTip(Me.cmdOutputStop, "Stop Auto Scan")
'
'Label3
'
Me.Label3.BackColor = System.Drawing.SystemColors.Control
Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
Me.Label3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label3.Location = New System.Drawing.Point(16, 112)
Me.Label3.Name = "Label3"
Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label3.Size = New System.Drawing.Size(73, 17)
Me.Label3.TabIndex = 17
Me.Label3.Text = "Output Value:"
'
'ScanTimer
'
Me.ScanTimer.Interval = 1000
'
'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(424, 48)
Me.cmdExit.Name = "cmdExit"
Me.cmdExit.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdExit.Size = New System.Drawing.Size(89, 25)
Me.cmdExit.TabIndex = 22
Me.cmdExit.Text = "&Close"
Me.ToolTip1.SetToolTip(Me.cmdExit, "Close application")
'
'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(295, 16)
Me.cmdSelectDevice.Name = "cmdSelectDevice"
Me.cmdSelectDevice.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdSelectDevice.Size = New System.Drawing.Size(96, 25)
Me.cmdSelectDevice.TabIndex = 3
Me.cmdSelectDevice.Text = "&Select Device"
Me.ToolTip1.SetToolTip(Me.cmdSelectDevice, "Selecting device to operation")
'
'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.ReadOnly = True
Me.txtDeviceName.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txtDeviceName.Size = New System.Drawing.Size(303, 19)
Me.txtDeviceName.TabIndex = 2
Me.txtDeviceName.Text = "AdvanTech"
Me.ToolTip1.SetToolTip(Me.txtDeviceName, "Device Name")
'
'txtDeviceNum
'
Me.txtDeviceNum.AcceptsReturn = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -