📄 addma2.frm
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form frmRun
Caption = "Advantech Demo: Converting & transfering data"
ClientHeight = 1830
ClientLeft = 3030
ClientTop = 2010
ClientWidth = 4920
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 1830
ScaleWidth = 4920
Begin VB.Timer FAIChkTmr
Enabled = 0 'False
Left = 360
Top = 960
End
Begin VB.CommandButton Command1
Caption = "&Terminal"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1440
TabIndex = 0
Top = 960
Width = 2175
End
Begin ComctlLib.ProgressBar ProgressBar1
Height = 375
Left = 240
TabIndex = 1
Top = 240
Width = 4455
_ExtentX = 7858
_ExtentY = 661
_Version = 327682
Appearance = 1
End
End
Attribute VB_Name = "frmRun"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
frmDataDisp.Show
Unload frmRun
End Sub
Private Sub FAIChkTmr_Timer()
Dim iRet As Integer
Dim ptAICheck As PT_FAICheck
Dim lStopped As Long
Dim iRetrieved As Long
Dim lOverrun As Long
Dim lHalfReady As Long
Dim lActiveBuf As Long
ptAICheck.stopped = DRV_GetAddress(lStopped)
ptAICheck.retrieved = DRV_GetAddress(iRetrieved)
ptAICheck.Overrun = DRV_GetAddress(lOverrun)
ptAICheck.HalfReady = DRV_GetAddress(lHalfReady)
ptAICheck.ActiveBuf = DRV_GetAddress(lActiveBuf)
ErrCde = DRV_FAICheck(DeviceHandle, ptAICheck)
If (ChkErr(ErrCde)) Then
FAIChkTmr.Enabled = False
Exit Sub
End If
If (iRetrieved = 0) Then
iRetrieved = 1
End If
ProgressBar1.value = iRetrieved - 1
If ((ProgressBar1.value + 1) = ProgressBar1.Max) Then
If (frmSelDev.chkCyclic.value = 0) Then
frmDataDisp.Show
Unload frmRun
End If
End If
End Sub
Private Sub Form_Load()
FAIChkTmr.Interval = 50
FAIChkTmr.Enabled = True
ProgressBar1.Max = Val(frmSelDev.DataCounts)
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmDataDisp.Show
Unload frmRun
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -