-
简易FIR滤波器
1、FIR数字滤波器的设计(1)在主函数中调用dsnFIR函数,滤波器参数设为21阶、带阻、矩形窗、采样率1000Hz、上下截止频率分别为100Hz,400Hz;(2)利用drawFIR函数分别画出所设计的FIR滤波器的幅频特性图和相频特性图。2、FIR数字滤波实现(1)编写一个输入信号子程序func(),输入信号为一连续函数,表达式为;(2)对输入信号进行采样,即 ,这里取采样率,得到离散序列x(n);(3)取x(n)中前40个点的值,将其转为复数存入复数数组x[64]中,并对x[64]做64点的FFT,得到的X(k)存回x[64]中;(4)已知在主函数中调用dsnFIR函数后得到的输出结果b[21]即为FIR滤波器单位冲激响应h(n)的值,将其转为复数存入复数数组h[64]中,并对h[64]做64点的FFT,得到的H(k)存回h[64]中;(5)已知用FIR滤波器对输入信号进行滤波就是将输入信号x(n)与滤波器单位冲激响应h(n)做卷积运算,故我转到频域采用FFT方法实现对输入信号x(n)的滤波,即将X(k)与H(k)相乘,得到滤波后信号的FFT变换Y(k),然后只需对Y(k)做IFFT变换即可得到滤波后信号y(n)。
- 2022-05-23 13:46:22下载
- 积分:1
-
development in a different way recently in the collation of the documents identi...
串口开发的另一种方式 最近在整理文件的时候发现了原先写的一个串口程序,为了提高重用性就又重新的写了一下。根据以前的使用过的一系列串口操作软件发现,大多数的串口操作软件不具备自动的记录保存功能,于是我就在这里把它加进去,记录文件是在应用程序目录下以时间命名的文本文件。程序使用了两个可以重用的 C++ 类,串口通讯类文件 superSP.cpp, superSP.h 文件操作类文件 fileCtrl.cpp, fileCtrl.h。
-development in a different way recently in the collation of the documents identified a previously written a serial process, In order to improve reusability also on the re-write a bit. Under the previous use of the series of Serial operating software found, Most of the serial operating software does not have an automatic record-keeping functions, so I was here it added. documented in the application directory time to a text file named. Procedures for the use of the two can reuse the C category, serial communications superSP.cpp document, superSP.h file manipulation fileCtrl.cpp types of documents, fileCtrl.h.
- 2022-03-18 23:02:53下载
- 积分:1
-
Serial串口累,支持多个串口同时通讯。
Serial串口累,支持多个串口同时通讯。-Serial serial tired, support for multiple serial communication at the same time.
- 2022-02-07 09:09:09下载
- 积分:1
-
This is Modbus applications. Think it said very clearly that we want to be helpf...
这是modbus的应用。觉得这讲的很清楚,希望对大家有所帮助。-This is Modbus applications. Think it said very clearly that we want to be helpful.
- 2022-01-25 23:35:09下载
- 积分:1
-
一个关于usb编程入门例子,开发一个usb driver需要做的基本步骤....
一个关于usb编程入门例子,开发一个usb driver需要做的基本步骤.-Getting Started on usb programming examples, the development of a usb driver needs to do the basic steps.
- 2023-05-17 12:15:04下载
- 积分:1
-
CAN OPEN European standard DSP 301 protocol
CAN OPEN 欧洲标准DSP 301通讯协议-CAN OPEN European standard DSP 301 protocol
- 2022-09-07 02:40:03下载
- 积分:1
-
Modem程序开发。当有电话打入时,如果响到指定次数就会自动应答。 Answering Machine....
Modem程序开发。当有电话打入时,如果响到指定次数就会自动应答。 Answering Machine.-Modem development. When a call to enter, when to ring for a designated number will automatically response. Answering Machine.
- 2023-02-02 13:45:04下载
- 积分:1
-
recently I just get finished serial operation, which is reference to other peopl...
本人最近刚刚搞完串口操作,这是参考其他人的代码,并修改而成的.-recently I just get finished serial operation, which is reference to other people"s code, and the revisions.
- 2022-02-14 22:17:12下载
- 积分:1
-
使用USR和RockWell Modem的语音Modem程序
使用USR和RockWell Modem的语音Modem程序 -Modem program Using 3Com USR Modem and RockWell Modem
- 2022-02-12 01:19:29下载
- 积分:1
-
可以自动检测你的网络的NAT类型,
可以自动探测你所处的网络NAT类型-can automatically detect where you are in the type of network NAT
- 2023-08-29 15:40:04下载
- 积分:1