📄 intform.frm
字号:
VERSION 5.00
Begin VB.Form INTform
Caption = "中断测试"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 345
ClientWidth = 3720
LinkTopic = "Form1"
ScaleHeight = 3150
ScaleWidth = 3720
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton stop
Caption = "停止"
Height = 495
Left = 1320
TabIndex = 6
Top = 2280
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 5
Top = 360
Width = 1095
End
Begin VB.CommandButton end
Caption = "结束"
Height = 495
Left = 2520
TabIndex = 3
Top = 2280
Width = 1095
End
Begin VB.CommandButton begin
Caption = "开始"
Height = 495
Left = 120
TabIndex = 2
Top = 2280
Width = 1095
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 0
Top = 1200
Width = 1095
End
Begin VB.Label Label2
Caption = "中断信号时钟频率(/S) "
Height = 600
Left = 480
TabIndex = 4
Top = 375
Width = 1335
End
Begin VB.Label Label1
Caption = "中断次数"
Height = 375
Left = 480
TabIndex = 1
Top = 1200
Width = 855
End
End
Attribute VB_Name = "INTform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim k As Integer
Private Sub begin_Click()
If (Text2 = "") Then
d = 0
k = MsgBox("数据没有输入,请输入,范围在(15--32767)!", vbQuestion, "数据输入")
Else
If (Text1 = "") Then
d = 0
k = MsgBox("数据没有输入,请输入!", vbQuestion, "数据输入")
Else
clks = Text2.Text
Call pci7483IntClkSet(hplx, clks)
k = Text1.Text
For i = 0 To k
Call pci7483EnableInt(hplx)
Call pci7483DisableInt(hplx)
Next i
End If
End If
k = 0
End Sub
Private Sub end_Click()
If hplx <> 1 Then
hplx = pci7483close(hplx)
End If
Unload INTform
End Sub
Private Sub Form_Load()
hplx = 0
hplx = pci7483check(0, 0, True, 1)
End Sub
Private Sub stop_Click()
Call pci7483DisableInt(hplx)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -