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

📄 sameplewaveform.frm

📁 设置滤波器类型
💻 FRM
字号:
VERSION 5.00
Begin VB.Form sameplewaveform 
   AutoRedraw      =   -1  'True
   Caption         =   "Sample Wave"
   ClientHeight    =   6195
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10755
   Icon            =   "sameplewaveform.frx":0000
   LinkTopic       =   "Form5"
   ScaleHeight     =   413
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   717
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
End
Attribute VB_Name = "sameplewaveform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

End Sub

Private Sub Form_Load()
Me.Visible = True

Dim tempbyte1 As Long

Dim temp As Double
Dim temp1 As Double
Dim tempold As Long
Dim pointerfrom As Long
Dim i As Long
tempold = 0
   
   'Open "./sindata.dat" For Random As #1 Len = 4
    pointerfrom = 1
    For i = 0 To 4096 Step 4
 
   'temp = workingbuf(i * 3) '300 * Sin(6.2832 * i / 480)
   ' temp = workingbuf(i) / 256 + workingbuf(i + 1) + workingbuf(i + 2) / 16777216 + workingbuf(i + 3) / 65536
   temp = workingbuf(i + 1)
   temp = temp * 65536
   temp1 = workingbuf(i)
   temp1 = temp1 * 256
   temp = temp + temp1
   temp1 = workingbuf(i + 3)
   temp1 = temp1
   temp = temp + temp1
   
  'temp = temp + workingbuf(i + 2)
   If workingbuf(i + 1) > &H80 Then
   temp1 = &HFFFFFF
    temp = -(temp1 - (temp And &HFFFFFF))
    
    End If
    temp = 4 * temp / &H10000
    Debug.Print i, Hex(workingbuf(i)), Hex(workingbuf(i + 1)), Hex(workingbuf(i + 2)), Hex(workingbuf(i + 3)), temp

    Line (i / 4, 400 - tempold)-(i / 4 + 1, 400 - temp)
    tempold = temp
    Next i
    'Close #1
End Sub

⌨️ 快捷键说明

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