Multiple sampling frequencies on one input device
2 次查看(过去 30 天)
显示 更早的评论
I am using the latest Matlab version (2013b) and I am wondering if it is possible to create two daq sessions with different channels from the same device and use two different sampling frequencies so I can measure them at the same time?
For example I am using a NIDAQ USB-6009 acquisition system and I would like to do something like this using only the one device:
channels 0,1,2 are part of one session and have a sampling frequency of 1,000 Hz. channel 3 is part of another session and has a sampling frequency of 10,000 Hz.
0 个评论
回答(1 个)
John Doe
2013-10-29
You can use the matlab function "downsample(signal, 10)" or "decimate(signal, 10)" on channels 0-2 which will convert the signal data from fs=10000 to fs=1000 as it's read in. I believe one function (decimate I think) smooths the result and reduces aliasing.
I do not believe the hardware can be altered to run on two different sampling freqs.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!