📄 adint.frm
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form ADINTF
BorderStyle = 1 'Fixed Single
Caption = "Advantech Driver Demo: Interrupt Data Transfer"
ClientHeight = 4860
ClientLeft = 45
ClientTop = 330
ClientWidth = 8700
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4860
ScaleWidth = 8700
StartUpPosition = 2 'CenterScreen
Begin ComctlLib.ProgressBar pgbar
Height = 285
Left = 225
TabIndex = 24
Top = 4440
Width = 3390
_ExtentX = 5980
_ExtentY = 503
_Version = 327682
Appearance = 1
End
Begin VB.Timer Timer1
Enabled = 0 'False
Left = 3480
Top = 960
End
Begin VB.Frame Frame6
Height = 1215
Left = 3960
TabIndex = 19
Top = 3240
Width = 2055
Begin VB.TextBox Conversion
Height = 330
Left = 810
TabIndex = 21
Text = "1000"
Top = 780
Width = 1095
End
Begin VB.TextBox Pacer
Height = 330
Left = 825
TabIndex = 20
Text = "1000"
Top = 210
Width = 735
End
Begin VB.Label Label3
Caption = "Speed:"
Height = 195
Left = 105
TabIndex = 28
Top = 270
Width = 750
End
Begin VB.Label Label4
Caption = "Hz"
Height = 255
Left = 1635
TabIndex = 27
Top = 270
Width = 330
End
Begin VB.Label Label5
Caption = "Conv. #"
Height = 255
Left = 120
TabIndex = 22
Top = 840
Width = 615
End
End
Begin VB.CommandButton cmdExit
Cancel = -1 'True
Caption = "&Exit"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6870
TabIndex = 18
Top = 3975
Width = 1215
End
Begin VB.CommandButton cmdStop
Caption = "&Stop"
Enabled = 0 'False
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6870
TabIndex = 17
Top = 3495
Width = 1215
End
Begin VB.CommandButton cmdRun
Caption = "&Run"
Default = -1 'True
Enabled = 0 'False
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6870
TabIndex = 16
Top = 3015
Width = 1215
End
Begin VB.Frame Frame5
Caption = "Triggering"
Height = 975
Left = 3960
TabIndex = 8
Top = 2160
Width = 2055
Begin VB.OptionButton External
Caption = "External"
Height = 255
Left = 360
TabIndex = 15
Top = 600
Width = 1215
End
Begin VB.OptionButton Internal
Caption = "Internal"
Height = 255
Left = 360
TabIndex = 14
Top = 240
Value = -1 'True
Width = 1335
End
End
Begin VB.Frame Frame4
Caption = "FIFO Setting"
Height = 1140
Left = 6120
TabIndex = 7
Top = 1560
Width = 2385
Begin VB.TextBox txtFifoSize
Enabled = 0 'False
Height = 330
Left = 840
TabIndex = 25
Top = 720
Width = 990
End
Begin VB.CheckBox FifoEnable
Caption = "Enable"
Height = 255
Left = 240
TabIndex = 9
Top = 255
Width = 1335
End
Begin VB.Label Label6
Caption = "Size"
Height = 195
Left = 360
TabIndex = 26
Top = 720
Width = 735
End
End
Begin VB.Frame input
Caption = "Input Range"
Height = 855
Left = 3960
TabIndex = 6
Top = 1200
Width = 2055
Begin VB.ComboBox Inprange
Height = 315
Left = 240
Style = 2 'Dropdown List
TabIndex = 13
Top = 360
Width = 1575
End
End
Begin VB.Frame Frame2
Caption = "Action Methods"
Height = 1335
Left = 6120
TabIndex = 5
Top = 120
Width = 2415
Begin VB.CheckBox Cyclic
Caption = "Cyclic accessing data"
Height = 255
Left = 240
TabIndex = 12
Top = 240
Width = 1935
End
Begin VB.CheckBox Datafloat
Caption = "Voltage Data"
Height = 255
Left = 240
TabIndex = 11
Top = 960
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox Evtenable
Caption = "Event Enable"
Height = 255
Left = 240
TabIndex = 10
Top = 600
Value = 1 'Checked
Width = 1455
End
End
Begin VB.Frame Frame1
Caption = "Scan Channel"
Height = 975
Left = 3960
TabIndex = 4
Top = 165
Width = 2055
Begin VB.ComboBox cmbScanChl
Height = 315
Left = 480
Style = 2 'Dropdown List
TabIndex = 23
Top = 480
Width = 1395
End
End
Begin VB.ListBox Datalist
Height = 2790
Left = 240
TabIndex = 2
Top = 1440
Width = 3375
End
Begin VB.CommandButton DeviceSelect
Caption = "Select Device from Device List"
Height = 495
Left = 240
TabIndex = 0
Top = 480
Width = 3375
End
Begin VB.Label Label7
Caption = "Note : Conv.# must be Multiple of NumChan && FIFO size"
Height = 255
Left = 3960
TabIndex = 29
Top = 4560
Width = 4215
End
Begin VB.Label Label2
Caption = "Display Data:"
Height = 255
Left = 360
TabIndex = 3
Top = 1200
Width = 1200
End
Begin VB.Label Label1
Caption = "Select Device:"
Height = 255
Left = 360
TabIndex = 1
Top = 240
Width = 1455
End
End
Attribute VB_Name = "ADINTF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmbScanChl_Click()
gwStartChl = cmbScanChl.ListIndex
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdRun_Click()
'check parameter
If (Not IsNumeric(Conversion.Text)) Then
MsgBox "Please input Numeric Conv.#!", vbOKOnly Or vbInformation, "Error"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -