Does the Data Acquisition Toolbox support different sampling rates on different channels simultaneously?

1 view (last 30 days)
Thank you for any information on the following question. I am more of a math and algorithm engineer and not a hardware engineer. My question is whether the Data Acquisition Toolbox can be used in the following way: Record from two different analog sources simultaneously and have each channel converted through the A/D at a different sampling rate, but with the two channels synchronized. For example, if one signal is coming in at 1000 Hz and the other at 8000 Hz, the low rate channel's clock is divided down from the clock of the high rate channel so that every 8 samples the data on the two channels occur exactly at the same time. I do not want to have a situation where one channel's clock drifts with respect to the other. I only need brief data captures, less than 5 minutes and even less than 1 minute.
Related question: If I have one channel of data coming in on the PC's A/D and another channel of data coming in on another A/D, will Matlab cause the PC to control both clocks simultaneously or does Matlab not have control over the clocks on the A/D's?
In my actual situation one sampling rate is much greater than other, much more than 8:1.

Answers (1)

Walter Roberson
Walter Roberson on 22 Feb 2014
If you need to sync distinct convertors (that are not controlled by the same A/D chassis), then you need a sync input to them that is run off a common source.
The Legacy interface appears to have supported per-channel sample rates; http://www.mathworks.com/help/daq/ref/samplerate.html
I do not find any mechanism to use different rates for different channels with the Session Based Interface, so I guess you would have to create two different sessions both set to trigger on an input, and run data collection in the background for at least one of them.

Categories

Find more on Simultaneous and Synchronized Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!