www.pudn.com > 5101.zip > F5101PA.FRM
VERSION 5.00
Begin VB.Form F5101pa
BorderStyle = 1 'Fixed Single
Caption = "修改参数"
ClientHeight = 4170
ClientLeft = 45
ClientTop = 330
ClientWidth = 5820
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4170
ScaleWidth = 5820
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame3
Caption = "启动方式"
Height = 1215
Left = 240
TabIndex = 7
Top = 240
Width = 5175
Begin VB.OptionButton TouchCheck
Caption = "外触发启动"
Height = 495
Left = 2760
TabIndex = 9
Top = 480
Width = 2055
End
Begin VB.OptionButton ProgramCheck
Caption = " 程序启动"
Height = 495
Left = 360
TabIndex = 8
Top = 480
Value = -1 'True
Width = 1695
End
End
Begin VB.CommandButton Finish
Caption = "返 回"
Height = 495
Left = 3960
TabIndex = 6
Top = 3360
Width = 1335
End
Begin VB.CommandButton Reset
Caption = "重 置"
Height = 495
Left = 2160
TabIndex = 5
Top = 3360
Width = 1335
End
Begin VB.CommandButton Save
Caption = "保 存"
Height = 495
Left = 360
TabIndex = 4
Top = 3360
Width = 1335
End
Begin VB.Frame Frame1
Caption = " 采集速度 "
Height = 1455
Left = 240
TabIndex = 0
Top = 1560
Width = 5175
Begin VB.HScrollBar SpeedHs
Height = 375
LargeChange = 5
Left = 480
Max = 10
Min = 1
TabIndex = 1
Top = 480
Value = 1
Width = 4095
End
Begin VB.Label Label2
Caption = "慢"
Height = 375
Left = 4200
TabIndex = 3
Top = 960
Width = 375
End
Begin VB.Label Label1
Caption = "快"
Height = 375
Left = 600
TabIndex = 2
Top = 960
Width = 375
End
End
End
Attribute VB_Name = "F5101pa"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Finish_Click()
Unload Me
End Sub
Private Sub Form_Load()
SpeedHs = Int(freq / 100)
Select Case StartMode
Case 0
ProgramCheck.Value = True
TouchCheck.Value = False
Case 1
ProgramCheck.Value = False
TouchCheck.Value = True
End Select
End Sub
Private Sub ProgramCheck_Click()
StartMode = 0
End Sub
Private Sub Reset_Click()
n = f5101_LoadPara()
SpeedHs = Int(freq / 100)
Select Case StartMode
Case 0
ProgramCheck.Value = True
TouchCheck.Value = False
Case 1
ProgramCheck.Value = False
TouchCheck.Value = True
End Select
End Sub
Private Sub Save_Click()
n = f5101_SavePara()
End Sub
Private Sub SpeedHs_Change()
freq = SpeedHs * 100
End Sub
Private Sub TouchCheck_Click()
StartMode = 1
End Sub