I keep getting this error Status Code: -201314

3 次查看(过去 30 天)
% Here is my code
clear
clc
devices=daq.getDevices;
s=daq.createSession('ni');
s.addCounterInputChannel('cDAQ1Mod1','ctr0','Frequency');
s.addAnalogInputChannel('cDAQ1Mod2','ai0','Bridge');
s.DurationInSeconds = 5;
ch1=s.Channels(1)
set(ch1);
ch2=s.Channels(2);
set(ch2);
ch2.BridgeMode = 'Half'
ch2.NominalBridgeResistance =11000;
[data,time] = s.startForeground();
plot(time,data)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I keep getting this error Multiple Sample Clock pulses were detected within one period of the input signal. Use a Sample Clock rate that is slower than the input signal. If you are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches. Task Name: _unnamedTask<33>
Status Code: -201314 How can I fix it?

回答(1 个)

Himanshu
Himanshu 2018-11-6
Hello James
There was a bug introduced in MATLAB R2014a through R2015b, which caused this error for Clocked-counter input channel operations. The bug has since been fixed in MATLAB R2016a.
If you are still using a previous version, you can download and install the patch available at: https://www.mathworks.com/support/bugreports/1277716
The URL also provides installation instructions for the patch.

类别

Help CenterFile Exchange 中查找有关 Continuous Waveforms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by