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

📄 frminit.frm

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmInit 
   Caption         =   "Advantech Demo: Device selection and initialization for condition analog Input /INT transfer"
   ClientHeight    =   4785
   ClientLeft      =   600
   ClientTop       =   1440
   ClientWidth     =   8535
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   4785
   ScaleMode       =   0  'User
   ScaleWidth      =   8535
   Begin VB.CommandButton butConvert 
      Caption         =   "&Convert"
      Height          =   495
      Left            =   6840
      TabIndex        =   35
      Top             =   3360
      Width           =   1455
   End
   Begin VB.CommandButton butExit 
      Caption         =   "E&xit"
      Height          =   495
      Left            =   6840
      TabIndex        =   34
      Top             =   4080
      Width           =   1455
   End
   Begin VB.Frame Frame1 
      Caption         =   "Scanning channel"
      Height          =   975
      Left            =   3960
      TabIndex        =   29
      Top             =   840
      Width           =   2655
      Begin VB.ComboBox cmbChlCount 
         Height          =   315
         Left            =   1440
         Style           =   2  'Dropdown List
         TabIndex        =   31
         Top             =   600
         Width           =   855
      End
      Begin VB.ComboBox cmbStartChl 
         Height          =   315
         Left            =   1440
         Style           =   2  'Dropdown List
         TabIndex        =   30
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label3 
         Caption         =   "Channel count"
         Height          =   255
         Left            =   120
         TabIndex        =   33
         Top             =   600
         Width           =   1455
      End
      Begin VB.Label Label1 
         Caption         =   "Start channel"
         Height          =   255
         Left            =   120
         TabIndex        =   32
         Top             =   240
         Width           =   1215
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Action methods"
      Height          =   1335
      Left            =   3960
      TabIndex        =   26
      Top             =   3360
      Width           =   2655
      Begin VB.CheckBox chkCyclic 
         Caption         =   "Cyclic accessing data"
         Height          =   375
         Left            =   120
         TabIndex        =   28
         Top             =   360
         Value           =   1  'Checked
         Width           =   2055
      End
      Begin VB.CheckBox chkFloatData 
         Caption         =   "Get floating data"
         Height          =   375
         Left            =   120
         TabIndex        =   27
         Top             =   840
         Value           =   1  'Checked
         Width           =   2295
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "Gain option"
      Height          =   1215
      Left            =   120
      TabIndex        =   23
      Top             =   960
      Width           =   3735
      Begin VB.CommandButton butGainList 
         Caption         =   "&Gain List..."
         Enabled         =   0   'False
         Height          =   495
         Left            =   2520
         TabIndex        =   38
         Top             =   600
         Width           =   1095
      End
      Begin VB.CheckBox chkOverallGain 
         Caption         =   "Use overall gain code"
         Height          =   255
         Left            =   120
         TabIndex        =   25
         Top             =   240
         Value           =   1  'Checked
         Width           =   2415
      End
      Begin VB.ListBox lstOverallGain 
         Height          =   645
         Left            =   120
         TabIndex        =   24
         Top             =   480
         Width           =   2295
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "Trigger source"
      Height          =   1455
      Left            =   3960
      TabIndex        =   17
      Top             =   1920
      Width           =   2655
      Begin VB.OptionButton radExtTrig 
         Caption         =   "External trigger"
         Height          =   375
         Left            =   240
         TabIndex        =   20
         Top             =   240
         Width           =   2055
      End
      Begin VB.OptionButton radInterTrig 
         Caption         =   "Internal trigger"
         Height          =   375
         Left            =   240
         TabIndex        =   19
         Top             =   600
         Value           =   -1  'True
         Width           =   2055
      End
      Begin VB.TextBox editSpeed 
         Height          =   375
         Left            =   1080
         TabIndex        =   18
         Text            =   "200"
         Top             =   960
         Width           =   735
      End
      Begin VB.Label Speed 
         Caption         =   "Speed:"
         Height          =   255
         Left            =   240
         TabIndex        =   22
         Top             =   1080
         Width           =   855
      End
      Begin VB.Label Hz 
         Caption         =   "Hz"
         Height          =   255
         Left            =   1920
         TabIndex        =   21
         Top             =   1080
         Width           =   375
      End
   End
   Begin VB.TextBox editCountEvent 
      Height          =   375
      Left            =   7800
      TabIndex        =   16
      Text            =   "1"
      Top             =   120
      Width           =   615
   End
   Begin VB.TextBox editDataCounts 
      Height          =   375
      Left            =   7800
      TabIndex        =   15
      Text            =   "200"
      Top             =   600
      Width           =   615
   End
   Begin VB.Frame Frame5 
      Caption         =   "Active condition"
      Height          =   1215
      Left            =   120
      TabIndex        =   11
      Top             =   2160
      Width           =   3735
      Begin VB.CheckBox chkOverallCond 
         Caption         =   "Every channel using same active condition"
         Height          =   255
         Left            =   120
         TabIndex        =   14
         Top             =   240
         Value           =   1  'Checked
         Width           =   3375
      End
      Begin VB.ListBox lstOverallCond 
         Height          =   645
         ItemData        =   "frmInit.frx":0000
         Left            =   120
         List            =   "frmInit.frx":0013
         TabIndex        =   13
         Top             =   480
         Width           =   2295
      End
      Begin VB.CommandButton butConditions 
         Caption         =   "Con&dtions..."
         Enabled         =   0   'False
         Height          =   495
         Left            =   2520
         TabIndex        =   12
         Top             =   600
         Width           =   1095
      End
   End
   Begin VB.Frame Frame6 
      Caption         =   "Active level"
      Height          =   1335
      Left            =   120
      TabIndex        =   4
      Top             =   3360
      Width           =   3735
      Begin VB.CheckBox chkOverallLevel 
         Caption         =   "Every channel using same active level"
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   240
         Value           =   1  'Checked
         Width           =   3135
      End
      Begin VB.CommandButton butLevels 
         Caption         =   "&Levels..."
         Enabled         =   0   'False
         Height          =   495
         Left            =   2520
         TabIndex        =   7
         Top             =   600
         Width           =   1095
      End
      Begin VB.TextBox editOverallLevelH 
         Height          =   285
         Left            =   1080
         TabIndex        =   6
         Text            =   "+04.000"
         Top             =   600
         Width           =   975
      End
      Begin VB.TextBox editOverallLevelL 
         Height          =   285
         Left            =   1080
         TabIndex        =   5
         Text            =   "+00.000"
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "High:"
         Height          =   255
         Left            =   480
         TabIndex        =   10
         Top             =   600
         Width           =   735
      End
      Begin VB.Label Label7 
         Caption         =   "Low:"
         Height          =   255
         Left            =   480
         TabIndex        =   9
         Top             =   960
         Width           =   495
      End
   End
   Begin VB.Frame Frame7 
      Caption         =   "Acquisition type"
      Height          =   735
      Left            =   3960
      TabIndex        =   2
      Top             =   0
      Width           =   2655
      Begin VB.ComboBox cmbAcqType 
         Height          =   315
         ItemData        =   "frmInit.frx":0046
         Left            =   240
         List            =   "frmInit.frx":0050
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   240
         Width           =   2055
      End
   End
   Begin VB.Frame Frame8 
      Caption         =   "Select Device"
      Height          =   975
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   3735
      Begin VB.ListBox lstDevices 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   540
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   3375
      End
   End
   Begin VB.Label Label4 
      Caption         =   "FIFO size:"
      Height          =   255
      Left            =   6720
      TabIndex        =   37
      Top             =   240
      Width           =   855
   End
   Begin VB.Label Label5 
      Caption         =   "Data Counts:"
      Height          =   375
      Left            =   6720
      TabIndex        =   36
      Top             =   720
      Width           =   1095
   End
End
Attribute VB_Name = "frmInit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim devicelist(0 To giMaxEntries) As PT_DEVLIST
Private Sub butConditions_Click()
Dim i, ii As Integer
Dim iStart As Integer
Dim iStop As Integer
    
    ' Clear every Condition list box
    frmConditions.EnableItems 0, 15, False
    
    'Make invidual chanel's gain code selection item
    iStart = cmbStartChl.ListIndex
    iStop = cmbStartChl.ListIndex + cmbChlCount.ListIndex
    
    For i = iStart To iStop
        frmConditions.lstCondition(i).ListIndex = giCondition(i)

⌨️ 快捷键说明

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