Multiple sampling frequencies on one input device

2 vues (au cours des 30 derniers jours)
Daniel
Daniel le 29 Oct 2013
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.

Réponses (1)

John Doe
John Doe le 29 Oct 2013
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.

Catégories

En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by