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?
0 件のコメント
回答 (1 件)
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 Center および File Exchange で Continuous Waveforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!