简体   繁体   English

在LabWindows中进行实时数据过滤?

[英]Real time data filtering in LabWindows?

My gyro is sending data I need to filter real-time. 我的陀螺仪正在发送我需要实时过滤的数据。 The data are short, 4 element-vectors that are sent 25 times a second. 数据是短的4个元素向量,每秒发送25次。 How do I filter this? 我该如何过滤? All the functions I've found in LabWindow's documentation require an entire array of data and then generate a filtered array of the same length (that seems a bit... weird). 我在LabWindow的文档中找到的所有功能都需要一个完整的数据数组,然后生成一个相同长度的过滤后的数组(这似乎有点...很奇怪)。 How can I filter my data using this weird function? 如何使用此怪异功能过滤数据?

For example, I'd like to: 例如,我想:

  1. filter the first data set 过滤第一个数据集
  2. shift by 1 移1
  3. filter the new data set taking only the last element of the output array 过滤新数据集,仅使用输出数组的最后一个元素

Thats what filtering using a FIR filter looks like if I recall correctly -- convolving signal with filter coefficients, moving by one sample and convolving again. 如果我没记错的话,那就是使用FIR滤波器进行滤波的样子-将信号与滤波器系数进行卷积,移动一个样本并再次进行卷积。

Benji 本治

I do not have access to the LabWindows/CVI real-time module, therefore cannot see the function prototype you are referring to. 我无权访问LabWindows / CVI实时模块,因此看不到您所指的功能原型。 If you provide more specific information, you may get more specific ideas on just how to use the call. 如果您提供更多具体信息,则可能会获得关于如何使用该呼叫的更多具体想法。

Regarding ideas on a C implementation of a FIR filter, look here 关于FIR滤波器的C实现的想法,请看这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM