フィルターのクリア

I keep getting this error Status Code: -201314

3 ビュー (過去 30 日間)
James Kim
James Kim 2018 年 10 月 31 日
コメント済み: James Kim 2018 年 11 月 6 日
% 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.
  1 件のコメント
James Kim
James Kim 2018 年 11 月 6 日
The problem had been solved. Thanks though!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeContinuous Waveforms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by