Force MATLAB to use specified sample rate?

I am acquiring voltage from three differential analog input channels of a DAQ (MCC USB-1808X, to be specific), which has a maximum sample rate of 200kS/s/channel. Using other software, I am able to sample all three channels at the max rate simultaneously.
However, when using the Data Acquisition Toolbox in MATLAB, setting the sample rate using:
s.Rate = 200000;
results in an error:
Rate cannot exceed 66666 for current configuration.
If I only sample one channel, the error does not occur. This makes me think that MATLAB sees the 200kS/s rate as an aggregate rate, which is not the case.
Is there a way to override this error and force MATLAB to sample at the specified rate?

 采纳的回答

Varun
Varun 2017-6-19
Hi Jesse,
Unfortunately, it is currently not possible to override this and force the device to sample multiple channel simultaneously at the maximum rate. We are working towards adding support for simultaneous sampling (on devices that support it) for a future release.
- Varun

更多回答(0 个)

类别

在 帮助中心 和 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!

Translated by