⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diform.vb

📁 使用研华DAQ和VB.net实现研华数据采集卡的多种功能.包括数据输入输出。内含多个源码
💻 VB
📖 第 1 页 / 共 5 页
字号:
Public Class frmDI
    Inherits System.Windows.Forms.Form
    Dim isInitializing As Boolean
    Dim chkBitArray(7) As CheckBox
    Dim radHBitArray(7) As RadioButton
    Dim radLBitArray(7) As RadioButton

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        isInitializing = True
        InitializeComponent()

        radHBitArray(0) = radHBit_0
        radHBitArray(1) = radHBit_1
        radHBitArray(2) = radHBit_2
        radHBitArray(3) = radHBit_3
        radHBitArray(4) = radHBit_4
        radHBitArray(5) = radHBit_5
        radHBitArray(6) = radHBit_6
        radHBitArray(7) = radHBit_7

        radLBitArray(0) = radLBit_0
        radLBitArray(1) = radLBit_1
        radLBitArray(2) = radLBit_2
        radLBitArray(3) = radLBit_3
        radLBitArray(4) = radLBit_4
        radLBitArray(5) = radLBit_5
        radLBitArray(6) = radLBit_6
        radLBitArray(7) = radLBit_7

        chkBitArray(0) = chkBit_0
        chkBitArray(1) = chkBit_1
        chkBitArray(2) = chkBit_2
        chkBitArray(3) = chkBit_3
        chkBitArray(4) = chkBit_4
        chkBitArray(5) = chkBit_5
        chkBitArray(6) = chkBit_6
        chkBitArray(7) = chkBit_7

        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 Frame6 As System.Windows.Forms.GroupBox
    Public WithEvents txtFilter As System.Windows.Forms.TextBox
    Public WithEvents txtData As System.Windows.Forms.TextBox
    Public WithEvents chkMatchEnabled As System.Windows.Forms.CheckBox
    Public WithEvents _Label7_9 As System.Windows.Forms.Label
    Public WithEvents _Label7_8 As System.Windows.Forms.Label
    Public WithEvents _Label7_7 As System.Windows.Forms.Label
    Public WithEvents _Label7_6 As System.Windows.Forms.Label
    Public WithEvents _Label7_5 As System.Windows.Forms.Label
    Public WithEvents _Label7_4 As System.Windows.Forms.Label
    Public WithEvents _Label7_3 As System.Windows.Forms.Label
    Public WithEvents _Label7_2 As System.Windows.Forms.Label
    Public WithEvents _Label7_1 As System.Windows.Forms.Label
    Public WithEvents _Label7_0 As System.Windows.Forms.Label
    Public WithEvents Frame5 As System.Windows.Forms.GroupBox
    Public WithEvents cmdEventScan As System.Windows.Forms.Button
    Public WithEvents cmdEventStop As System.Windows.Forms.Button
    Public WithEvents txtScanTime As System.Windows.Forms.TextBox
    Public WithEvents cmdBitStop As System.Windows.Forms.Button
    Public WithEvents cmdBitScan As System.Windows.Forms.Button
    Public WithEvents cmdByteStop As System.Windows.Forms.Button
    Public WithEvents cmdByteScan As System.Windows.Forms.Button
    Public WithEvents Label6 As System.Windows.Forms.Label
    Public WithEvents Label5 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 cmdExit As System.Windows.Forms.Button
    Public WithEvents Frame2 As System.Windows.Forms.GroupBox
    Public WithEvents cmbBit As System.Windows.Forms.ComboBox
    Public WithEvents cmbPort As System.Windows.Forms.ComboBox
    Public WithEvents Label4 As System.Windows.Forms.Label
    Public WithEvents Label3 As System.Windows.Forms.Label
    Public WithEvents Frame3 As System.Windows.Forms.GroupBox
    Public WithEvents Label8 As System.Windows.Forms.Label
    Public WithEvents Label9 As System.Windows.Forms.Label
    Public WithEvents Frame4 As System.Windows.Forms.GroupBox
    Public WithEvents cmdBitRead As System.Windows.Forms.Button
    Public WithEvents cmdByteRead As System.Windows.Forms.Button
    Public WithEvents txtDIData As System.Windows.Forms.TextBox
    Friend WithEvents txtEventNum As System.Windows.Forms.TextBox
    Friend WithEvents txtMatchNum As System.Windows.Forms.TextBox
    Public WithEvents chkBit_7 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_6 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_5 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_4 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_3 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_2 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_1 As System.Windows.Forms.CheckBox
    Public WithEvents chkBit_0 As System.Windows.Forms.CheckBox
    Public WithEvents radHBit_6 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_5 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_5 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_4 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_4 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_3 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_3 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_2 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_2 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_1 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_1 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_0 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_0 As System.Windows.Forms.RadioButton
    Public WithEvents radHBit_7 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_7 As System.Windows.Forms.RadioButton
    Public WithEvents radLBit_6 As System.Windows.Forms.RadioButton
    Public WithEvents Frame7_7 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_6 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_5 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_4 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_3 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_2 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_1 As System.Windows.Forms.GroupBox
    Public WithEvents Frame7_0 As System.Windows.Forms.GroupBox
    Friend WithEvents DAQDI1 As AxDAQDILib.AxDAQDI
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmDI))
        Me.txtDeviceNum = New System.Windows.Forms.TextBox
        Me.txtDeviceName = New System.Windows.Forms.TextBox
        Me.cmdSelectDevice = New System.Windows.Forms.Button
        Me.Frame6 = New System.Windows.Forms.GroupBox
        Me.Frame7_7 = New System.Windows.Forms.GroupBox
        Me.radHBit_7 = New System.Windows.Forms.RadioButton
        Me.radLBit_7 = New System.Windows.Forms.RadioButton
        Me.Frame7_6 = New System.Windows.Forms.GroupBox
        Me.radHBit_6 = New System.Windows.Forms.RadioButton
        Me.radLBit_6 = New System.Windows.Forms.RadioButton
        Me.Frame7_5 = New System.Windows.Forms.GroupBox
        Me.radHBit_5 = New System.Windows.Forms.RadioButton
        Me.radLBit_5 = New System.Windows.Forms.RadioButton
        Me.Frame7_4 = New System.Windows.Forms.GroupBox
        Me.radHBit_4 = New System.Windows.Forms.RadioButton
        Me.radLBit_4 = New System.Windows.Forms.RadioButton
        Me.Frame7_3 = New System.Windows.Forms.GroupBox
        Me.radHBit_3 = New System.Windows.Forms.RadioButton
        Me.radLBit_3 = New System.Windows.Forms.RadioButton
        Me.Frame7_2 = New System.Windows.Forms.GroupBox
        Me.radHBit_2 = New System.Windows.Forms.RadioButton
        Me.radLBit_2 = New System.Windows.Forms.RadioButton
        Me.Frame7_1 = New System.Windows.Forms.GroupBox
        Me.radHBit_1 = New System.Windows.Forms.RadioButton
        Me.radLBit_1 = New System.Windows.Forms.RadioButton
        Me.Frame7_0 = New System.Windows.Forms.GroupBox
        Me.radLBit_0 = New System.Windows.Forms.RadioButton
        Me.radHBit_0 = New System.Windows.Forms.RadioButton
        Me.txtFilter = New System.Windows.Forms.TextBox
        Me.txtData = New System.Windows.Forms.TextBox
        Me.chkMatchEnabled = New System.Windows.Forms.CheckBox
        Me.chkBit_7 = New System.Windows.Forms.CheckBox
        Me.chkBit_6 = New System.Windows.Forms.CheckBox
        Me.chkBit_5 = New System.Windows.Forms.CheckBox
        Me.chkBit_4 = New System.Windows.Forms.CheckBox
        Me.chkBit_3 = New System.Windows.Forms.CheckBox
        Me.chkBit_2 = New System.Windows.Forms.CheckBox
        Me.chkBit_1 = New System.Windows.Forms.CheckBox
        Me.chkBit_0 = New System.Windows.Forms.CheckBox
        Me._Label7_9 = New System.Windows.Forms.Label
        Me._Label7_8 = New System.Windows.Forms.Label
        Me._Label7_7 = New System.Windows.Forms.Label
        Me._Label7_6 = New System.Windows.Forms.Label
        Me._Label7_5 = New System.Windows.Forms.Label
        Me._Label7_4 = New System.Windows.Forms.Label
        Me._Label7_3 = New System.Windows.Forms.Label
        Me._Label7_2 = New System.Windows.Forms.Label
        Me._Label7_1 = New System.Windows.Forms.Label
        Me._Label7_0 = New System.Windows.Forms.Label
        Me.Frame5 = New System.Windows.Forms.GroupBox
        Me.cmdEventScan = New System.Windows.Forms.Button
        Me.cmdEventStop = New System.Windows.Forms.Button
        Me.txtScanTime = New System.Windows.Forms.TextBox
        Me.cmdBitStop = New System.Windows.Forms.Button
        Me.cmdBitScan = New System.Windows.Forms.Button
        Me.cmdByteStop = New System.Windows.Forms.Button
        Me.cmdByteScan = New System.Windows.Forms.Button
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = 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.cmdExit = New System.Windows.Forms.Button
        Me.Frame2 = New System.Windows.Forms.GroupBox
        Me.cmbBit = New System.Windows.Forms.ComboBox
        Me.cmbPort = New System.Windows.Forms.ComboBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Frame3 = New System.Windows.Forms.GroupBox
        Me.txtMatchNum = New System.Windows.Forms.TextBox
        Me.txtEventNum = New System.Windows.Forms.TextBox
        Me.txtDIData = New System.Windows.Forms.TextBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Frame4 = New System.Windows.Forms.GroupBox
        Me.cmdBitRead = New System.Windows.Forms.Button
        Me.cmdByteRead = New System.Windows.Forms.Button
        Me.DAQDI1 = New AxDAQDILib.AxDAQDI
        Me.Frame6.SuspendLayout()
        Me.Frame7_7.SuspendLayout()
        Me.Frame7_6.SuspendLayout()
        Me.Frame7_5.SuspendLayout()
        Me.Frame7_4.SuspendLayout()
        Me.Frame7_3.SuspendLayout()
        Me.Frame7_2.SuspendLayout()
        Me.Frame7_1.SuspendLayout()
        Me.Frame7_0.SuspendLayout()
        Me.Frame5.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame3.SuspendLayout()
        Me.Frame4.SuspendLayout()
        CType(Me.DAQDI1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'txtDeviceNum
        '
        Me.txtDeviceNum.AcceptsReturn = True
        Me.txtDeviceNum.AutoSize = False
        Me.txtDeviceNum.BackColor = System.Drawing.SystemColors.Window
        Me.txtDeviceNum.Cursor = System.Windows.Forms.Cursors.IBeam

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -