Multiple sampling frequencies on one input device

2 visualizaciones (últimos 30 días)
Daniel
Daniel el 29 de Oct. de 2013
Respondida: John Doe el 29 de Oct. de 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.

Respuestas (1)

John Doe
John Doe el 29 de Oct. de 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.

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by